3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = ''; 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 AXh8G
Output for 4.3.0 - 7.2.0
Test with == foo is null ------------------- Test with === foo is not null