1 2 3 4 5 6 7 8
<?php $a = new stdclass; $b = $a; $b->prop = 'Hello'; var_dump($a);
1 2 3 4
object(stdClass)#1 (1) { ["prop"]=> string(5) "Hello" }