3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php switch($cola): 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 5.1.0 - 7.1.0
Notice: Undefined variable: cola in /in/NgRAl on line 3 Notice: Undefined variable: cola in /in/NgRAl on line 5 Notice: Undefined variable: cola in /in/NgRAl on line 8 not at all
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: cola in /in/NgRAl on line 2 not at all
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: cola in /in/NgRAl on line 2 not at all