<?php class A { function __construct() { } } class B { static $c = 0; function construct() { $this->i = ++self::$c; } } $a = new A; $b = clone $a; var_dump($a, $b);
You have javascript disabled. You will not be able to edit any code.