3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = INF; $b = array(); $c = new stdClass(); var_dump($a < $b); var_dump($b < $c); var_dump($c < $a);
based on FkHr7
Output for 7.0.0 - 7.2.0
bool(true) bool(true) Notice: Object of class stdClass could not be converted to float in /in/76R4l on line 8 bool(true)
Output for 5.3.20 - 5.6.28
bool(true) bool(true) Notice: Object of class stdClass could not be converted to double in /in/76R4l on line 8 bool(true)