I have answered this a while back, but cannot find the answer right now. I believe it went like this:
References are simply "additional" entries in the symbol table for the same value. The symbol table can only have values it points to, not values in values. The symbol table cannot point to an index in an array, it can only point to a value. So when you want to make a reference to an array index, the value at that index is taken out of the array, a symbol is created for it and the slot in the array gets a reference to the value:
$foo = array('bar');
symbol | value
-------+----------------
foo | array(0 => bar)
$baz =& $foo[0];
symbol | value
-------+----------------
foo | array(0 => $1)
baz | $1
$1 | bar <-- pseudo entry for value that can be referenced
Because this is not possible:
symbol | value
-------+----------------
foo | array(0 => bar)
baz | &foo[0] <-- not supported by symbol table
The $1
above is just an arbitrarily chosen "pseudo" name, it has nothing to do with actual PHP syntax or with how the value is actually referenced internally.
As requested in the comments, here how the symbol table usually behaves with references:
$a = 1;
symbol | value
-------+----------------
a | 1
$b = 1;
symbol | value
-------+----------------
a | 1
b | 1
$c =& a;
symbol | value
-------+----------------
a, c | 1
b | 1