3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "\nFall a:"; if (0 == 0) { echo "TRUE"; } else { echo "false"; } echo "\nFall b:"; if (0 == "0") { echo "TRUE"; } else { echo "false"; } echo "\nFall c:"; if (0 == "1") { echo "TRUE"; } else { echo "false"; } echo "\nFall d:"; if (0 == "") { echo "TRUE"; } else { echo "false"; } echo "\nFall e:"; if ("abc123" >= array()) { echo "TRUE"; } else { echo "false"; } echo "\nFall f:"; if (array() >= "abc123") { echo "TRUE"; } else { echo "false"; } echo "\nFall g:"; if (456 == "456abc") { echo "TRUE"; } else { echo "false"; } echo "\nFall h:"; if (0 == "Chuck Norris") { echo "TRUE"; } else { echo "false"; } ?>
based on DM2kg
Output for 4.3.0 - 7.1.0
Fall a:TRUE Fall b:TRUE Fall c:false Fall d:TRUE Fall e:false Fall f:TRUE Fall g:TRUE Fall h:TRUE