3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'null == false? ', (null == false) ? 'yes' : 'no', '<br />'; echo 'null == 0?', (null == 0) ? 'yes' : 'no', '<br />'; echo 'null == "0"?', (null == "0") ? 'yes' : 'no', '<br />'; echo 'null == $undefined?', (null == $undefined) ? 'yes', 'no' : '<br />'; echo 'null == ""?', (null == "") ? 'yes' : 'no', '<br />'; echo 'false == 0?', (false == 0) ? 'yes', 'no' : '<br />'; echo 'false == "0"?', (false == "0") ? 'yes' : 'no', '<br />'; echo 'false == $undefined?', (false == $undefined) ? 'yes' : 'no', '<br />'; echo 'false == ""?', (false == "") ? 'yes' : 'no', '<br />'; echo '0 == "0"?', (0 == "0") ? 'yes' : 'no', '<br />'; echo '0 == $undefined?', (0 == $undefined) ? 'yes' : 'no', '<br />'; echo '0 == ""?', (0 == "") ? 'yes', 'no' : '<br />'; echo '"0" == $undefined?', ("0" == $undefined) ? 'yes' : 'no', '<br />'; echo '"0" == ""?', ("0" == "") ? 'yes' : 'no', '<br />'; echo '$undefined == ""?', ($undefined == "") ? 'yes' : 'no', '<br />';
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17
Parse error: syntax error, unexpected ',' in /in/EY2Qf on line 6
Process exited with code 255.

preferences:
172.06 ms | 1395 KiB | 53 Q