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"); print('"133" == "0133" : '); var_dump("133" == "0133"); print(' 133 == 0133 : '); var_dump(133 == 0133); print(' "0x10" == "16" : '); var_dump("0x10" == "16"); print('"1e3" == "1000" : '); var_dump("1e3" == "1000");
Output for 7.0.0 - 7.1.0
"6" == " 6" : bool(true) "4.2" == "4.20" : bool(true) "133" == "0133" : bool(true) 133 == 0133 : bool(false) "0x10" == "16" : bool(false) "1e3" == "1000" : bool(true)
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
"6" == " 6" : bool(true) "4.2" == "4.20" : bool(true) "133" == "0133" : bool(true) 133 == 0133 : bool(false) "0x10" == "16" : bool(true) "1e3" == "1000" : bool(true)