3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); switch($_GET['a']) { case "lol" : echo "haha"; case "hihi": echo "lachen!"; default: echo "nja"; }else{ echo "iserniet"; } ?>
Output for 5.4.0 - 5.4.1
Parse error: syntax error, unexpected 'else' (T_ELSE) in /in/2UZGW on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.11
Parse error: syntax error, unexpected T_ELSE in /in/2UZGW on line 11
Process exited with code 255.