<?php phpinfo(int $flags = INFO_ALL): true
<?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); }