3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = null; echo "\r\nTest with == \r\n"; if ($foo == null) { echo 'foo is null'; } else { echo 'foo is not null'; } echo "\r\n-------------------\r\n"; echo "\r\nTest with ===\r\n"; if ($foo === null) { echo 'foo is null'; } else { echo 'foo is not null'; }
based on BiPKC
Output for 4.3.0 - 7.2.0
Test with == foo is null ------------------- Test with === foo is null