3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php switch($beer) { case 'tuborg'; case 'carlsberg'; case 'heineken'; echo 'Good choice'; break; default; echo 'Please make a new selection...'; break; }
Output for 5.1.0 - 7.2.0
Notice: Undefined variable: beer in /in/EsgX7 on line 4 Notice: Undefined variable: beer in /in/EsgX7 on line 5 Notice: Undefined variable: beer in /in/EsgX7 on line 6 Please make a new selection...
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: beer in /in/EsgX7 on line 2 Please make a new selection...
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: beer in /in/EsgX7 on line 2 Please make a new selection...