lib/Twig/lib/Twig/Environment.php
public function compile(Twig_NodeInterface $node)
    {
        if (null === $this->compiler) {
            $this->compiler = new Twig_Compiler($this);
        }

        return $this->compiler->compile($node)->getSource();
    }
public function compile(Twig_NodeInterface $node)
    {
        if (null === $this->compiler) {
            $this->compiler = new Twig_Compiler($this);
        }

        return $this->compiler->compile($node)->getSource();
    }
Compiles a node and returns the PHP code.

@return string The compiled PHP source code