<?php
class Cd
{
public $name;
public function __construct($a)
{
$this->name = $a;
}
}
$a=new Cd(1);
$b=$a;
echo "$a->name\n";
echo "live a\n";
else
echo "die a\n";
echo "live b\n";
else
echo "die b\n";
echo "$b->name\n";
PD9waHAKCmNsYXNzIENkCnsKCXB1YmxpYyAkbmFtZTsKIAogICAgcHVibGljIGZ1bmN0aW9uIF9fY29uc3RydWN0KCRhKQogICAgewogICAgICAgICR0aGlzLT5uYW1lID0gJGE7CiAgICB9Cn0KCiRhPW5ldyBDZCgxKTsKCiRiPSRhOwoKZWNobyAiJGEtPm5hbWVcbiI7CnVuc2V0KCRhKTsKCmlmKGlzc2V0KCRhKSkKICBlY2hvICJsaXZlIGFcbiI7CmVsc2UKCWVjaG8gImRpZSBhXG4iOwoKCmlmKGlzc2V0KCRiKSkKICBlY2hvICJsaXZlIGJcbiI7CmVsc2UKCWVjaG8gImRpZSBiXG4iOwoKZWNobyAiJGItPm5hbWVcbiI7Cgp2YXJfZHVtcCgkYSk7CnZhcl9kdW1wKCRiKTs=