3v4l.org

run code in 150+ 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.3.28 - 5.3.29, 5.4.18 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: beer in /in/hLaHt on line 5 Notice: Undefined variable: beer in /in/hLaHt on line 6 Notice: Undefined variable: beer in /in/hLaHt on line 7 Please make a new selection...
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: beer in /in/hLaHt on line 13 Notice: Undefined variable: beer in /in/hLaHt on line 13 Notice: Undefined variable: beer in /in/hLaHt on line 13 Please make a new selection...
Output for 5.1.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined variable: beer in /in/XWTie on line 5 Notice: Undefined variable: beer in /in/XWTie on line 6 Notice: Undefined variable: beer in /in/XWTie on line 7 Please make a new selection...
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: beer in /in/XWTie on line 3 Please make a new selection...
Output for 4.3.1 - 5.0.3
Notice: Undefined variable: beer in /in/XWTie on line 3 Please make a new selection...
Output for 4.3.0
Notice: Undefined variable: beer in /in/hLaHt on line 3 Please make a new selection...