3v4l.org

run code in 200+ 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($result, true). " \n");}
based on M2NWG
Output for 4.3.0 - 7.2.0
is_null ( NULL ) = true is_null ( 0 ) = false is_null ( 1 ) = false is_null ( true ) = false is_null ( false ) = false