3v4l.org

run code in 150+ 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
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 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.14
bool(true) bool(true) bool(false) bool(false)