0Pricing
PHP Academy · Lesson

Fibers: Cooperative Concurrency

Pause and resume PHP execution with Fibers for async-like patterns.

What Are Fibers?

PHP 8.1 introduced Fibers — lightweight coroutines that can pause execution at a specific point and be resumed later, enabling cooperative multitasking.

Fiber vs Async

Fibers are not parallel threads — PHP is still single-threaded. Fibers allow one execution context to voluntarily yield control to another, enabling async-like patterns.

All lessons in this course

  1. Match Expression and Named Arguments
  2. Nullsafe Operator and Union Types
  3. Enumerations (Enums)
  4. Fibers: Cooperative Concurrency
← Back to PHP Academy