Argument capturing for preg function family in Callgraph

The Callgraph Profiler captures the regular expressions for the preg function family starting with PHP Extension 5.5.8. This simplifies finding regular expression related bottlenecks, either through inefficient patterns or due to high function call counts.

The functions preg_match, preg_match_all, preg_split, preg_replace and preg_replace_callback are instrumented. The captured regular expression is truncated to the first 30 chars.

About the author

  • Benjamin

Benjamin
Founder & CEO

I am the founder and CEO of Tideways. I started the company over 10 years ago with the mission to move the PHP ecosystem forward, starting with performance. As managing director, I work across product, strategy, and the day-to-day of building a developer-focused SaaS business.

I’m a core contributor to the Doctrine open-source project and a founding board member of the PHP Foundation, which reflects my long-standing commitment to the PHP ecosystem. I particularly enjoy working at the intersection of application performance, developer experience, and the open-source community that makes PHP what it is. Outside of work, I enjoy board games, hiking, and coffee.