3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $person = 'Travis'; echo 'Welcome '; switch ($person){ case "Jack": echo "You ain't Travis, sorry."; break; case "Mike": echo "You ain't Travis, try again."; break; case "Bob": echo "You ain't Travis, please get him."; break; default: echo "sorry, unable to help."; break; } ?>
Output for 4.3.0 - 5.6.26, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Welcome sorry, unable to help.