title: Does PHP compile XPath
body: <p>Can anyone tell me if and when PHP compiles XPath expressions? It would be useful to know for both simpleXML and DOMDocument classes. I also want to know where the compiled XPath is stored. </p>