When working on Safi, my custom minimal PHP microframework, I initially reached for nikic/fast-route. It’s a battle-tested library that defined modern PHP routing, and I’ve always admired Nikita Popov’s classic write-up on regex routing performance.
However, since Safi focuses on zero-overhead execution, I started wondering: Can I build a smaller, dedicated router for PHP 8.5+ that runs even faster?
Continue reading Writing a PHP 8.5 Router Faster Than FastRoute