3v4l.org

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