3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fiber = new Fiber(function() { $count = 3; echo "Start\n"; while(true) { Fiber::suspend(); // suspend the fiber echo "Are there results?\n"; $count--; if ($count === 0) { return; // We received the results, we stop } } }); $fiber->start(); // Initiates processing do { echo "Do something else\n"; $fiber->resume(); // Restart the fiber } while (!$fiber->isTerminated()); // The fiber has terminated echo "End\n";

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
155.19 ms | 1480 KiB | 8 Q