Someone
public text v1 · immutable~ $ cat test.php
<?php
$x = 1;
switch ($x) {
case $x++:
print "here\n";
break;
case $x:
print "there\n";
}
switch ((int)$x) {
case $x++:
print "here\n";
break;
case $x:
print "there\n";
}
~ $ php test.php
there
here