2019-09-06 23:53:10 +08:00

21 lines
256 B
PHP
Executable File

<?php
co::set(['stack_size' => 8192*4]);
function test($n)
{
$a = 1;
$b = 2;
$c = 3;
$d = 4;
static $i;
usleep(100000);
echo "index=".($i++)."\n";
return test($n + $a + $b + $c + $d);
}
go(function () {
test(9);
});