Input: CLI
4/59
Input: Apache/CGI
Input: FastCGI
CLI binary is optimized for the command line.
On an invocation, PHP itself:
checks whether the file exists
fills in needed environment/SERVER variables
opens the file, and gives the file pointer to the parser