Hi internals I'm wondering about the state of PHP's JIT these days. I understand that Dmitry is still working on his standalone JIT IR framework [1] that's being used by PHP, and that Arnaud is maintaining it from the Foundation/PHP side? In my own benchmarks, done in PHP 8.0 and PHP 8.4; I cannot seem to get any meaningful performance gain from the JIT in web applications or in tools like PHPStan. [2][3][4]
The question I'm left with is whether the JIT is worth the hassle? Assuming the JIT's existence impacts the complexity of internal development, I wonder if it wouldn't be better to deprecate it in a future PHP version? To be clear, I'm assuming the JIT impacts internal development — maybe that's wrong? Perhaps I'm missing a real-life use case that benefits significantly from the JIT as well? Kind regards Brent [1] https://github.com/dstogov/ir [2] https://stitcher.io/blog/jit-in-real-life-web-applications [3] https://youtu.be/2Njl1ZiCXIk?si=qytMIVxt0oTC3b1F&t=1057 [4] https://www.youtube.com/watch?v=5ResKrAnpBw
