3v4l.org

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