3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); switch($_GET['a']) { case "lol" : echo "haha"; case "hihi": echo "lachen!"; default: echo "nja"; ?>
Output for 5.4.0 - 5.4.1
Parse error: syntax error, unexpected end of file in /in/acEvg on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.11
Parse error: syntax error, unexpected $end in /in/acEvg on line 12
Process exited with code 255.

preferences:
166.92 ms | 1386 KiB | 21 Q