3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) bool(false)
Output for 4.3.0 - 4.4.9
bool(true) bool(true)