3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
0===0 1===1 2===2
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.4.9
0===0 1===0 1===1 2===0 2===1 2===2