3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print("\"6\" == \" 6\" :"); var_dump("6" == " 6"); print('"4.2" == "4.20"'); var_dump("4.2" == "4.20"); var_dump("133" == "0133"); var_dump(133 == 0133); var_dump("0x10" == "16"); var_dump("1e3" == "1000");
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
"6" == " 6" :bool(true) "4.2" == "4.20"bool(true) bool(true) bool(false) bool(false) bool(true)
Output for 4.3.0 - 5.6.28
"6" == " 6" :bool(true) "4.2" == "4.20"bool(true) bool(true) bool(false) bool(true) bool(true)