Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Repeat a string
str_repeat(string $stringint $times): string
$data = (isset($argv[1]) ? $argv[1] : 'y') . "\n";




$data str_repeat($dataround(200000 strlen($data)));



if (!
defined('STDOUT') || stream_set_blocking(STDOUTfalse) !== true) {

    
fwrite(STDERR'ERROR: Unable to set STDOUT non-blocking (not CLI or Windows?)' PHP_EOL);
    echo "Runs:\t\t\t$runs\n";

    echo 
"Memory (internal):\t$kmem KiB\n";

    echo 
"Memory (real):\t\t$kmemReal KiB\n";

    echo 
str_repeat('-'50), "\n";

});



echo 
"PHP Version:\t\t"phpversion(), "\n";
echo "Loop\t\t\t"get_class(Loop::get()), "\n";

echo 
"Time\t\t\t"date('r'), "\n";



echo 
str_repeat('-'50), "\n";



$beginTime time();

Loop::run();
        });




        
fwrite($otherstr_repeat('.', static::PHP_DEFAULT_CHUNK_SIZE));

        
$this->loop->addTimer(0.01, function () use ($other) {

            
fclose($other);

        });