#sui", function () { return rand(); }); $body = replace($body, "##sui", function ($p, $increment) use ($lastEventId) { return $lastEventId + floatval($increment); }); replace($body, "#([\s\S]*?)(?:\)?#sui", function ($p, $s, $delay) { if ($s !== "") { echo $s; ob_flush(); flush(); } if ($delay) { usleep(floatval($delay) * 1000); } }); exit(); ?>