Similarly, to get a more efficient version, you can hardcode the symbol table update:
Note: You can see that the global variable is actually not accessible from within the function. This is because it's not imported into the local scope using global $global_variable; in the PHP source.