3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; $b = (object)[]; $c = INF; var_dump($a < $b); var_dump($b < $c); var_dump($c < $a);
Output for 7.0.0 - 7.2.0
bool(true) Notice: Object of class stdClass could not be converted to float in /in/RoeSY on line 8 bool(true) bool(true)
Output for 5.4.0 - 5.6.28
bool(true) Notice: Object of class stdClass could not be converted to double in /in/RoeSY on line 8 bool(true) bool(true)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/RoeSY on line 3
Process exited with code 255.