3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data[] = null; $data[] = 0; $data[] = 1; $data[] = true; $data[] = false; foreach($data as $value) { $result = is_null($value); echo ("is_null ( " . var_export($value, true) . " ) = " . var_export(is_null($value), true). " \n");}
based on XN9Mk
Output for 4.3.0 - 7.1.0
is_null ( NULL ) = true is_null ( 0 ) = false is_null ( 1 ) = false is_null ( true ) = false is_null ( false ) = false