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 FQOLr
Output for 5.2.0 - 7.2.0
bool(true) bool(true) bool(true)
Output for 5.1.0 - 5.1.6
bool(true) bool(false) bool(true)
Output for 4.3.6 - 5.0.5
bool(true) bool(false) bool(false)
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant INF - assumed 'INF' in /in/Xd6I3 on line 3 bool(true) bool(false) bool(false)