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.6.21, 7.0.0 - 7.1.0RC5
Parse error: syntax error, unexpected ',' in /in/pqM4B on line 6
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: syntax error, unexpected ',' in /in/pqM4B on line 6
Process exited with code 255.