How to test PHP scripts with internal HTTP server

The internal HTTP server (IHS) enables to test PHP scripts without a need for external server. To properly view the output of PHP script, some variables should be defined: