worker.php 316 B

1234567891011121314
  1. <?php
  2. $i = 0;
  3. do {
  4. $ok = frankenphp_handle_request(function () use ($i): void {
  5. echo sprintf("Requests handled: %d (request time: %s)\n", $i, $_SERVER['REQUEST_TIME_FLOAT']);
  6. var_export($_GET);
  7. var_export($_POST);
  8. var_export($_SERVER);
  9. });
  10. $i++;
  11. } while ($ok);