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 "Travis": echo "finally, where have you been?"; break; default: echo "sorry, unable to help."; break; } ?>
Output for 4.3.0 - 7.1.0
Welcome, finally, where have you been?