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 ?>

preferences:
59.47 ms | 712 KiB | 5 Q