<?php ob_get_clean(): string|false
<?php ->setCode(function (InputInterface $input, OutputInterface $output): int { ob_start(); phpinfo(); $phpinfo = ob_get_clean(); $output->write($phpinfo); return Command::SUCCESS; })