3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($a == 5){ echo "a equals 5"; echo "..."; }elseif ($a == 6){ echo "a equals 6"; echo "!!!"; }else{ echo "a is neither 5 nor 6"; } ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: a in /in/BmH6M on line 2 Notice: Undefined variable: a in /in/BmH6M on line 5 a is neither 5 nor 6
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/BmH6M on line 2 Notice: Undefined variable: a in /in/BmH6M on line 5 a is neither 5 nor 6