3v4l.org

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