3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = NULL; echo "print_r of x:\n"; print_r($x); echo "\n\nis_null of x:\n"; print_r(is_null($x)); echo "\n\nisset of x:\n"; print_r(isset($x)); echo "\n\nprint_r of y:\n"; print_r($y); echo "\n\nis_null of y:\n"; print_r(is_null($y)); echo "\n\nisset of y:\n"; print_r(isset($y));
Output for 7.3.0rc3
print_r of x: is_null of x: 1 isset of x: print_r of y: Notice: Undefined variable: y in /in/6cmAY on line 15 is_null of y: Notice: Undefined variable: y in /in/6cmAY on line 18 1 isset of y: