3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(" 2" == " 2"); var_dump(" 2 " == " 2 "); var_dump(" 2 " == 2); // string headed by number var_dump(" 2 "+0 == " 2");
Output for 7.1.0
bool(true) bool(false) bool(true) Notice: A non well formed numeric value encountered in /in/W1POh on line 8 bool(true)
Output for 4.3.0 - 7.0.14
bool(true) bool(false) bool(true) bool(true)