Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PHP 7 has Zend OPtimizer built in, basically a caching bytecode compiler. Previous versions used to use the APC extension to serve the same purpose.


That's distinct from JIT - it's just a way to prevent having to re-parse/compile to byte code every single request to your site (no other language has this issue)


> no other language has this issue

Because no other language is as easy to deploy. With PHP you edit the PHP file, and that's it. It's deployed. No clearing cache, no compiling, packaging, nothing.

It's one of the major factors in how good of a language it is.

If it's needs this optimization as a result of that, it's completely worth it, and other languages should copy that.


> Because no other language is as easy to deploy

Nah, it's because PHP isn't an actively running process.

The overhead of starting a process isn't what it used to be in shared web infra world before. It's cheap to spin up a small VM now. And there are other similar constructs, e.g. FaaS




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: