<?php class A {} $a = new A;$b = $a;$c = clone $a;$d = new A; var_dump($a, $b, $c, $d);
Standard input is empty
object(A)#1 (0) { } object(A)#1 (0) { } object(A)#2 (0) { } object(A)#3 (0) { }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!