Question: how php code is parsed?
Answer: The web browser requests a document with a . ...  The web server says, "Hey! ...  The PHP parser finds the requested file and scans it for PHP code. When the PHP parser finds PHP code, it executes that code and places the resulting output (if any) into the place in the file formerly occupied by the code.