run code in 150+ php & hhvm versions
Bugs & Features
<?php $person = 'bill'; echo 'Welcome, '; switch ($person){ case "Jack": echo "you ain't Travis, sorry."; break; case "Mike": echo "you ain't Travis, try again."; break; case "Travis": echo "finally, where have you been?"; break; default: echo "sorry, unable to help."; break; } ?>
Output for 4.3.0 - 5.6.23, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0RC4
Welcome, sorry, unable to help.