3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { public int $a, $b; } $a = new x(); $a->a = 1; $a->b = 2; $b = new x(); $b->b = 2; $b->a = 1; var_dump($a == $b); // true identical, whatever the order var_dump($a === $b); // false identical, but not the order ?>
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.7
bool(true) bool(false)

preferences:
48.31 ms | 711 KiB | 4 Q