3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function is_bazzable($op) { switch (2) { case 1: echo 'bazzable but 1'; break; default: echo "first default\n"; break; default: echo "second default\n"; } } var_dump(is_bazzable(1)); var_dump(is_bazzable(2)); var_dump(is_bazzable(3));
based on ijbvI
Output for 4.3.0 - 5.6.28
second default NULL second default NULL second default NULL