x=$x; } } $a=new A("instance A"); $b=$a; $b->x="instance B"; print_r($a); echo "
"; print_r($b); ?>