Advanced PHP
Q70 / 100

What is the PHP Fibers API and how does it differ from async/await?

Correct! Well done.

Incorrect.

The correct answer is B) Fibers provide low-level stackful coroutines; async/await is syntactic sugar built on top by frameworks using the event loop

B

Correct Answer

Fibers provide low-level stackful coroutines; async/await is syntactic sugar built on top by frameworks using the event loop

Explanation

PHP Fibers (8.1) are stackful coroutines with Fiber::suspend(). Async frameworks like ReactPHP use Fibers as the foundation for async/await syntax.

Progress
70/100