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 git.master_jit, git.master
bool(true) bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.87 ms | 711 KiB | 4 Q