3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo($x) { switch ($x) { case 1; var_dump('WHAT'); default; var_dump($x); } } foo(1); foo(2);
based on 4FfYY
Output for 5.6.0 - 7.3.1
string(4) "WHAT" int(1) int(2)