3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(" 2" == " 2"); // true var_dump(" 2 " == " 2 "); // false; neither numeric str, binary comp var_dump(" 2 "+0," 2 "+0 == " 2 "); // true: numeric context so str headed by num vs str headed by num

preferences:
34.94 ms | 402 KiB | 5 Q