3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(new stdClass, new stdClass, new stdClass); $array[0]->a = 10; $array[1]->a = 30; $array[2]->a = 20; 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 EAGQl
Output for 4.3.0 - 7.1.0
0===0 1>0 1===1 2>0 2<1 2===2