Log in to watch this talk
You need to be logged in to access this video. If you don't have an account, purchase a virtual pass for the latest php[tek] conference to get access to the full video library.
When PHP Stops Sleeping and Starts Thinking Concurrently
For decades, PHP’s execution model has been simple — one request, one thread, one response. Clean, predictable… and painfully limited when you start dealing with real-time APIs, streaming, or parallel data processing. But with Fibers, Swoole, and async I/O, PHP is finally waking up — and it’s learning how to think concurrently. In this advanced session, we’ll go deep into how modern PHP handles concurrency. Through live demos and benchmarks, we’ll explore how Fibers let you write non-blocking code that looks synchronous but performs like a high-speed async engine. We’ll walk through parallel API calls, streaming data pipelines, and background job orchestration — all running natively in PHP. You’ll learn: * How Fibers and event loops revolutionize PHP’s traditional blocking model * The differences between concurrency, parallelism, and async in PHP * Using Swoole, ReactPHP, and Amphp to manage high-throughput, concurrent workloads * Avoiding race conditions, deadlocks, and unpredictable state in concurrent code * Real-world performance numbers comparing sync vs async implementations This session is fast-paced, practical, and full of live code and load tests. If you’ve ever wished PHP could multitask like Go or Node.js, this talk will show you — with proof — that the future of PHP is not sleeping anymore. It’s thinking concurrently.
Pallavi Thukral