fiber-basic.php 175 B

123456789
  1. <?php
  2. require_once __DIR__.'/_executor.php';
  3. return function() {
  4. $fiber = new Fiber(function() {
  5. echo 'Fiber '.($_GET['i'] ?? '');
  6. });
  7. $fiber->start();
  8. };