Let's test PHP 8 performance with it JIT.

Image for post
Image for post
PHP 8.0 Performance vs PHP 7.x

Even if opcodes are in the form of low-level intermediate representation, they still have to be compiled into machine code. JIT “doesn’t introduce any additional IR (Intermediate Representation) form”, but uses DynASM (Dynamic Assembler for code generation engines) to generate native code directly from PHP byte-code.

In short, JIT translates the hot parts of the intermediate code into machine code. Bypassing compilation, it’d be able to bring considerable improvements in performance and memory usage.

for the test, we will use the docker image: https://hub.docker.com/r/phpdockerio/php80-fpm

Image for post
Image for post

Settings in PHP.ini

; Enables or disables JIT compilation of patterns. This requires the PCRE
; library to be compiled with JIT support. …


Yegor Shytikov

Magento/APP Cloud Architect. Melting metal server infrastructure into cloud solutions.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store