3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php doit($v) { switch ($v) { case 0: echo "zero\n"; break; case null: echo "null\n"; break; case false: echo "false\n"; break; case '': echo "''\n"; break; } } foreach ([0, null, false, ''] as $v) doit($v);
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected '{' in /in/O1dKF on line 3
Process exited with code 255.