3v4l.org

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