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 - 5.6.28, hhvm-3.10.0 - 3.14.4, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/WmAiu on line 2 Notice: Undefined variable: a in /in/WmAiu on line 5 a is neither 5 nor 6
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/WmAiu on line 2 Notice: Undefined variable: a in /in/WmAiu on line 5 a is neither 5 nor 6