phpinfo

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Outputs information about PHP's configuration
<?php phpinfo(int $flags = INFO_ALL): true
<?php     protected function phpinfo()

    {

        ob_start();

        phpinfo(-1);

        $phpInfoStr = ob_get_clean();



        $replacePairs = [
<?php         }



        ob_start();

        phpinfo(INFO_GENERAL);

        $phpinfo = ob_get_clean();

        if (Preg::isMatch('{Configure Command(?: *</td><td class="v">| *=> *)(.*?)(?:</td>|$)}m', $phpinfo, $match)) {

            $configure = $match[1];
<?php         ob_start();

        phpinfo(INFO_MODULES);

        $info = ob_get_clean();



        if (preg_match('/OpenSSL Library Version => OpenSSL ([\d\.]+)/', $info, $match)) {
<?php $app->register('phpinfo')

    ->setCode(function (InputInterface $input, OutputInterface $output): int {

        ob_start();

        phpinfo();

        $phpinfo = ob_get_clean();

        $output->write($phpinfo);

        return Command::SUCCESS;
<?php }



if (isset($_GET['phpinfo'])) {

    phpinfo();

    exit(0);

}