Generators vs Fibers in #PHP: both suspend execution, totally different mechanism.
Generator: saves ONE execute_data frame. Yield pauses it, ->next() resumes. One level deep.
Fiber: saves the ENTIRE call stack.
Generator, stackless coroutine. Fiber, stackful coroutine.
Alexandre Daubois