Using the JIT compiler
Learn how to use the JIT compiler in PHP 8 applications to improve efficiency.
Let's now have a look at the JIT compiler in action.
Utilizing the JIT compiler
In this example, we use a classic benchmark program that produces a Mandelbrot. This is an excellent test because it’s extremely computation-intensive. The implementation we use here is drawn from the implementation code produced by Dmitry Stogov, one of the PHP core development team members. We first run the program in PHP 7 using the -n
flag. Here is the result:
Get hands-on with 1200+ tech skills courses.