How to get Php configuration information

To get the configuration details(like php version, host details, mysql details) use the following function:

How to get the installed php version ?

phpinfo();