3v4l.org

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