3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array(new stdClass, new stdClass, new stdClass); for ($i = 0; $i < 3; $i++) { for ($j = 0; $j <= $i; $j++) { $x = $array1[$i]; $y = $array1[$j]; if ($x < $y) print("$i<$j "); if ($x > $y) print("$i>$j "); if ($x === $y) print("$i!=$j "); print(" "); } print("\n"); }
based on gf1XK
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.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