3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('ab', 'ba', 'yz'); foreach ($array as $value) { switch($value) { case 'ab': case 'ba': echo "ab is just ba backwards\r\n"; break; default: echo "default\r\n"; break; } } ?>
Output for 4.3.0 - 7.1.0
ab is just ba backwards ab is just ba backwards default