3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'test'; switch($foo) { case 'doc'; echo 'something'; break; case 'test'; echo 'went into foo'; break; }
Output for 4.3.0 - 7.1.0
went into foo