3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="M"; $last=array($strig,$strg,$string,$stg); switch($last) { case 'k': case 'K': echo "k" break; case 'm': case 'M': echo "k"; break; default: echo "o"; } ?>
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected 'break' (T_BREAK), expecting ',' or ';' in /in/3Eq06 on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_BREAK, expecting ',' or ';' in /in/3Eq06 on line 8
Process exited with code 255.

preferences:
179.42 ms | 1395 KiB | 57 Q