3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $stad = "Las Vegas"; switch ($stad) { case "Honolulu:": echo " $stad Bring a swimsuit<br>"; break; case "Las Vegas": echo " Bring an extra $500<br>"; break; case "Amsterdam": echo " Bring an open mind<br>"; break; case "Tokyo": echo " Bring lots of money<br>"; break; case "Cairo": echo " Bring 15 bottles of SPF 50 Sunscreen<br>"; break; default: echo "Bring lots of underwear!"; break; } ?>
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0rc3
Bring an extra $500<br>