3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $obj = new stdClass; $obj->a = &$obj->b; $obj->b = 123; var_dump($obj);
based on 25eDG
Output for 5.3.18 - 5.6.28, 7.1.0 - 7.2.0
object(stdClass)#1 (2) { ["b"]=> &int(123) ["a"]=> &int(123) }
Output for 7.0.0 - 7.0.20
object(stdClass)#1 (2) { ["a"]=> &int(123) ["b"]=> &int(123) }