3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(new stdClass, new stdClass, new stdClass); for ($i = 0; $i < 3; $i++) { for ($j = 0; $j <= $i; $j++) { $x = $array[$i]; $y = $array[$j]; if ($x < $y) print("$i<$j "); if ($x > $y) print("$i>$j "); if ($x === $y) print("$i===$j "); print(" "); } print("\n"); }
based on gl32M
Output for 5.0.0 - 7.2.0
0===0 1===1 2===2
Output for 4.3.0 - 4.4.9
0===0 1===0 1===1 2===0 2===1 2===2