3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 2; switch($i){ case 1: echo "It's about one"; case 2: echo "It's about two"; case 3: echo "it's about three"; case default: echo "not at all"; }
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'default' (T_DEFAULT) in /in/XKK9m on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_DEFAULT in /in/XKK9m on line 10
Process exited with code 255.

preferences:
188.75 ms | 1395 KiB | 53 Q