If I have a large object and assign another variable to that object, does php create two objects, or does it use a pointer internally?
for example:
<?php
$myObject = new Class_That_Will_Consume_Lots_Of_Memory();
$testObject = $myObject;
In this example will i be using 2 x the memory footprint of a Class_That_Will_Consume_Lots_Of_Memory
instance or will it be 1 of those and a pointer?