3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function doit($v) { var_dump($v); switch ($v) { case 0: echo "zero"; break; case null: echo "null"; break; case false: echo "false"; break; case '': echo "''"; break; } echo "\n\n"; } foreach (array(0, null, false, '') as $v) doit($v);
Output for 4.3.0 - 7.1.0
int(0) zero NULL zero bool(false) zero string(0) "" zero