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($result, true). " \n");}
based on M2NWG
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
is_null ( NULL ) = true is_null ( 0 ) = false is_null ( 1 ) = false is_null ( true ) = false is_null ( false ) = false