3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(empty( $var )); var_dump( isset( $var ) && $var == NULL ); var_dump(is_null($var)); var_dump($var === NULL);
Output for 5.0.4 - 7.1.0
bool(true) bool(false) Notice: Undefined variable: var in /in/s7hi2 on line 5 bool(true) Notice: Undefined variable: var in /in/s7hi2 on line 6 bool(true)
Output for 4.3.0 - 5.0.3
bool(true) bool(false) Notice: Undefined variable: var in /in/s7hi2 on line 5 bool(true) Notice: Undefined variable: var in /in/s7hi2 on line 6 bool(true)