phpinfo()

phpinfo() is one of the most famous PHP function. It outputs information about PHP’s configuration and compilation, in HTML format.

<?php

    // Show all information, defaults to INFO_ALL
    phpinfo();

?>

Documentation

See also Part 1/3: Understanding phpinfo() — The Accidental Goldmine and Pretty PHP Info: A Modern Replacement for `phpinfo() <https://laravel-news.com/pretty-phpinfo>`_.

Related : Leak, php.ini, Compile

Added in PHP 4.0