3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(null < "-1"); var_dump("" < "-1"); var_dump("" + 0 < "-1"); var_dump("" < "-1" + 0);
Output for 7.1.0 - 7.3.0rc4
bool(true) bool(true) Warning: A non-numeric value encountered in /in/mXtHT on line 4 bool(false) bool(false)
Output for 4.3.0 - 7.0.20
bool(true) bool(true) bool(false) bool(false)