3v4l.org

run code in 200+ 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"; endif; ?>
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: a in /in/SvIAo on line 2 Notice: Undefined variable: a in /in/SvIAo on line 5 a is neither 5 nor 6
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/SvIAo on line 2 Notice: Undefined variable: a in /in/SvIAo on line 5 a is neither 5 nor 6