<?php class A { function __clone() { $this->x = clone $this->x; } } $a = new A(); $a->x = new StdClass(); $b = clone $a; var_dump($a, $b);
You have javascript disabled. You will not be able to edit any code.