Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Turn on output buffering
<?php ob_start(?callable $callback = null, int $chunk_size = 0, int $flags = PHP_OUTPUT_HANDLER_STDFLAGS): bool
<?php             $warnings['zlib'] = true;

        }



        ob_start();

        phpinfo(INFO_GENERAL);

        $phpinfo = ob_get_clean();

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

        $reflector = new \ReflectionExtension($extension);



        ob_start();

        $reflector->info();



        return ob_get_clean();
<?php     public function testExecuteOutputsIfNotCaptured()

    {

        $process = new ProcessExecutor;

        ob_start();

        $process->execute('echo foo');

        $output = ob_get_clean();

        $this->assertEquals("foo".PHP_EOL, $output);