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 }



EOTXT;

        ob_start();

        var_dump($clone);

        $this->assertStringMatchesFormat(str_replace('"1"', '1', $expected), ob_get_clean());

    }
<?php         ]);

        $data = $cloner->cloneVar($var);



        ob_start();

        $dumper->dump($data);

        $out = ob_get_clean();

        $out = preg_replace('/[ \t]+$/m', '', $out);
<?php         $cloner = new VarCloner();

        $data = $cloner->cloneVar($var);



        ob_start();

        $dumper->dump($data);

        $out = ob_get_clean();

        $res = (int) $var;
<?php         $cloner = new VarCloner();

        $data = $cloner->cloneVar($var);



        ob_start();

        $dumper->dump($data);

        $out = ob_get_clean();
<?php         $var1 = 'a';



        ob_start();

        $return = dump($var1);

        ob_end_clean();
<?php         $var2 = 'b';

        $var3 = 'c';



        ob_start();

        $return = dump($var1, $var2, $var3);

        ob_end_clean();
<?php         ]);

        $data = $cloner->cloneVar($var);



        ob_start();

        $dumper->dump($data);

        $out = ob_get_clean();

        $out = preg_replace('/[ \t]+$/m', '', $out);
<?php         $dumper = new HtmlDumper();

        $cloner = new VarCloner();



        ob_start();

        $dumper->dump($cloner->cloneVar($var));

        $out = ob_get_clean();