3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $b = new stdClass; $c = INF; var_dump($a < $b); var_dump($b < $c); var_dump($c < $a);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.29, 7.4.0 - 7.4.21, 8.0.0 - 8.0.8
bool(true) Notice: Object of class stdClass could not be converted to float in /in/Yu1FT on line 8 bool(true) bool(true)
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
bool(true) Notice: Object of class stdClass could not be converted to double in /in/Yu1FT on line 8 bool(true) bool(true)

preferences:
181.62 ms | 460 KiB | 5 Q