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; endswitch;
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/9vYQS on line 4 Notice: Undefined variable: beer in /in/9vYQS on line 5 Notice: Undefined variable: beer in /in/9vYQS on line 6 Please make a new selection...
Output for hhvm-3.12.0
Notice: Undefined variable: beer in /in/9vYQS on line 12 Notice: Undefined variable: beer in /in/9vYQS on line 12 Notice: Undefined variable: beer in /in/9vYQS on line 12 Please make a new selection...
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.1.0 - 5.3.27, 5.4.0 - 5.4.17
Notice: Undefined variable: beer in /in/7LuAi on line 4 Notice: Undefined variable: beer in /in/7LuAi on line 5 Notice: Undefined variable: beer in /in/7LuAi on line 6 Please make a new selection...
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: beer in /in/7LuAi on line 3 Please make a new selection...
Output for 4.3.1 - 5.0.3
Notice: Undefined variable: beer in /in/7LuAi on line 3 Please make a new selection...
Output for 4.3.0
Notice: Undefined variable: beer in /in/9vYQS on line 3 Please make a new selection...