3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $formval = "0"; if (isset($formval)) { echo "is set\n"; } $defined = null; var_dump(is_null($defined)); var_dump(is_null($undefined));
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
is set bool(true) Notice: Undefined variable: undefined in /in/8N1Be on line 9 bool(true)
Output for 4.3.0 - 5.0.3
is set bool(true) Notice: Undefined variable: undefined in /in/8N1Be on line 9 bool(true)