3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = "apple"; switch ($i) { case "apple": echo "i is apple"; break; case "bar": echo "i is bar"; break; case "cake": echo "i is cake"; break; }
Output for 4.3.0 - 7.1.0
i is apple