3v4l.org

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