Skip to content

2026

Faster PHP callbacks with a struct

Callbacks are everywhere in PHP: array_filter, usort, XML parser handlers, session handlers, WordPress hooks, closures passed around in every modern framework. On .NET, those calls go through the PeachPie runtime's IPhpCallable.Invoke. Thanks to a great contribution from @arontsang, that hot path just got leaner. Let's take a look at what changed and why it matters.