---- $foo; ---- ----- $$foo; ----- ------ ${FOO}; ------
protected function parseCompoundVariableOrVariableVariableOrVariable() { if ($this->tokenizer->peek() == Tokens::T_DOLLAR) { return $this->parseCompoundVariableOrVariableVariable(); } return $this->parseVariable(); }