3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $body = 0; function isTotallyNull($body){ if ($body !== null) { echo var_export($body,true).' is not null'.PHP_EOL; }else{ echo var_export($body,true).' is null'.PHP_EOL; } } isTotallyNull(null); isTotallyNull(1); isTotallyNull(0); isTotallyNull('lolz');
based on tdZbg
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
NULL is null 1 is not null 0 is not null 'lolz' is not null