3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php switch($a) { case 'hi': echo "hi"; break; default: echo "bye"; break; }
Output for 5.1.0 - 5.6.38, 7.0.0 - 7.3.0rc4
Notice: Undefined variable: a in /in/7J91v on line 4 bye
Output for hhvm-3.10.1 - 3.22.0
Notice: Undefined variable: a in /in/7J91v on line 10 bye
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: a in /in/7J91v on line 3 bye
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/7J91v on line 3 bye