3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $person = 'Jack'; echo 'Welcome'; switch ($person){ case "Jack": echo "You ain't Travis, sorry."; break; case "Mike": echo "You ain't Travis, try again."; break; case "Bob": echo "You ain't Travis, please get him."; break; default "Jack": echo "sorry, unable to help."; break; } ?>
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '"Jack"' (T_CONSTANT_ENCAPSED_STRING), expecting ':' or ';' in /in/52rSR on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ':' or ';' in /in/52rSR on line 18
Process exited with code 255.