Profiling Production PHP with Two Lines of php.ini — and the Bug We Only Found by Rebuilding PHP Its

The observability tax Every team eventually asks the same question: "Why is the checkout page slow — and is it the database, the cache, or that payment API?" The usual answers come with a tax attached. SaaS APM agents (Datadog, New Relic) are excellent — and priced per host, per month, forever, while your traffic data flows to someone else's cloud. Homegrown solutions — logging microtime() into files, pushing counters to Redis — add code, add latency, and tend to die of neglect. There's a third option that has quietly worked on high-load PHP farms since 2009: the Pinba extension. It's a PHP extension written in C that hooks the request lifecycle, gathers the numbers, and at request shutdown
…