3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $soda = "cola"; switch($soda): case "cola": echo "It's about cola"; case "big": echo "It's about big cola"; break; case "pepsi": echo "It's about pepsi"; break; default: echo "not at all"; endswitch;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
It's about colaIt's about big cola