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     {

        extract($data);



        ob_start();



        include __DIR__."/../../resources/views/components/$view.php";
<?php         }



        return tap(tmpfile(), function ($temp) use ($width, $height, $extension) {

            ob_start();



            $extension = in_array($extension, ['jpeg', 'png', 'gif', 'webp', 'wbmp', 'bmp'])

                ? strtolower($extension)
<?php             PHPUnit::fail('The response is not a streamed response.');

        }



        ob_start(function (string $buffer): string {

            $this->streamedContent .= $buffer;



            return '';

        });



        $this->sendContent();
<?php     public function startComponent($view, array $data = [])

    {

        if (ob_start()) {

            $this->componentStack[] = $view;



            $this->componentData[$this->currentComponent()] = $data;
<?php     {

        if (func_num_args() === 2 || $content !== null) {

            $this->slots[$this->currentComponent()][$name] = $content;

        } elseif (ob_start()) {

            $this->slots[$this->currentComponent()][$name] = '';



            $this->slotStack[$this->currentComponent()][] = [$name, $attributes];
<?php     public function startFragment($fragment)

    {

        if (ob_start()) {

            $this->fragmentStack[] = $fragment;

        }

    }
<?php     public function startSection($section, $content = null)

    {

        if ($content === null) {

            if (ob_start()) {

                $this->sectionStack[] = $section;

            }

        } else {
<?php     public function startPush($section, $content = '')

    {

        if ($content === '') {

            if (ob_start()) {

                $this->pushStack[] = $section;

            }

        } else {
<?php     public function startPrepend($section, $content = '')

    {

        if ($content === '') {

            if (ob_start()) {

                $this->pushStack[] = $section;

            }

        } else {
<?php     public function startTranslation($replacements = [])

    {

        ob_start();



        $this->translationReplacements = $replacements;

    }
<?php     {

        $obLevel = ob_get_level();



        ob_start();
<?php         $files = new FilesystemAdapter($this->filesystem, $this->adapter);

        $response = $files->response('file.txt');



        ob_start();

        $response->sendContent();

        $content = ob_get_clean();
<?php         $template = $this->compiler->compileString('@component(\'Illuminate\Tests\View\Blade\ComponentStub::class\', \'test\', ["foo" => "bar"])');



        ob_start();

        eval(" ?> $template <?php endif; ");

        ob_get_clean();

    }
<?php         $template = $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile {{ $attributes }} />');

        $template = $this->compiler->compileString($template);



        ob_start();

        eval(" ?> $template <?php ");

        ob_get_clean();
<?php         ])->compileTags('<x-container><x-profile {{ $attributes }} /></x-container>');

        $template = $this->compiler->compileString($template);



        ob_start();

        eval(" ?> $template <?php ");

        ob_get_clean();