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) { echo "is_null ( ", var_export($value, true), " ) = ", is_null($value), " \n"; }
based on NHjGJ
Output for 4.3.0 - 7.1.0
is_null ( NULL ) = 1 is_null ( 0 ) = is_null ( 1 ) = is_null ( true ) = is_null ( false ) =