3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new stdclass; $bar = new stdclass; $bar->foo = $foo; $baz = new stdclass; $baz->foo = $foo; var_dump($bar->foo === $baz->foo); $bar = unserialize(serialize($bar)); $baz = unserialize(serialize($baz)); var_dump($bar->foo === $baz->foo);
Output for 5.0.0 - 7.2.0
bool(true) bool(false)
Output for 4.3.0 - 4.4.9
bool(true) bool(true)