For each of these, compact() looks for a variable with that name in the current symbol table and adds it to the output array such that the variable name becomes ...
php.net