3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(0); echo 'null == false? ', (null == false) ? 'yes' : 'no', "\n"; echo 'null == 0 ? ', (null == 0) ? 'yes' : 'no', "\n"; echo 'null == "0" ? ', (null == "0") ? 'yes' : 'no', "\n"; echo 'null == $foo ? ', (null == $foo) ? 'yes' : 'no', "\n"; echo 'null == "" ? ', (null == "") ? 'yes' : 'no', "\n"; echo 'false == 0 ? ', (false == 0) ? 'yes' : 'no', "\n"; echo 'false == "0" ?', (false == "0") ? 'yes' : 'no', "\n"; echo 'false == $foo ? ', (false == $undefined) ? 'yes' : 'no', "\n"; echo 'false == "" ? ', (false == "") ? 'yes' : 'no', "\n"; echo '0 == "0" ? ', (0 == "0") ? 'yes' : 'no', "\n"; echo '0 == $foo ? ', (0 == $undefined) ? 'yes' : 'no', "\n"; echo '0 == "" ? ', (0 == "") ? 'yes' : 'no', "\n"; echo '"0" == $foo ? ', ("0" == $undefined) ? 'yes' : 'no', "\n"; echo '"0" == "" ? ', ("0" == "") ? 'yes' : 'no', "\n"; echo '$foo == "" ? ', ($undefined == "") ? 'yes' : 'no', "\n";

preferences:
54.22 ms | 402 KiB | 5 Q