3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.5.1
Parse error: syntax error, unexpected ',' in /in/7CkuX on line 3
Process exited with code 255.