Im looking at the case where functions return a reference in PHP (function &func()) like this:
3v4l.org/7jHuf . In a normal function, a value is returned (a Literal). In this scenario, what would this function return? Does PHP return the actual variable that is being returned? $GLOBALS['foo'], in this case? Think of my question in terms of compiler design and what happens to the references within the SymbolTable. When we update $a, how does the PHP trace this back to $GLOBALS[‘foo’]?