3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $t = array( 0, '0', '', null, false, array(), ); foreach ($t as $i => $v) { if ($v == NULL) { echo "$i : " . print_r($v, TRUE) . " IS NULL\n"; } else { echo "$i : " . print_r($v, TRUE) . " is not NULL\n"; } }
based on A1ldD
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0 : 0 IS NULL 1 : 0 is not NULL 2 : IS NULL 3 : IS NULL 4 : IS NULL 5 : Array ( ) IS NULL