3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'foo'; switch ($foo) { case 'foo': echo "first foo\n"; case 'foo': echo "second foo\n"; default: echo "first default\n"; break; default: echo "second default\n"; }
based on 4W41K
Output for 5.3.0 - 5.6.28
first foo second foo first default