3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if ($a > $b) { echo "a is greater than b"; } else { echo "a is NOT greater than b"; } ?>
Output for 7.0.0 - 7.2.6
Notice: Undefined variable: b in /in/CjE6P on line 2 Notice: Undefined variable: a in /in/CjE6P on line 2 a is NOT greater than b
Output for 5.3.19 - 5.6.28
Notice: Undefined variable: a in /in/CjE6P on line 2 Notice: Undefined variable: b in /in/CjE6P on line 2 a is NOT greater than b