PHP Classes

Just-in-time compilation

Recommend this page to a friend!

      PHP Classes blog  >  PHP Current State and...  >  All threads  >  Just-in-time compilation  >  (Un) Subscribe thread alerts  
Subject:Just-in-time compilation
Summary:Involves compilation during execution.
Messages:3
Author:Ramesh Narayan Jangid
Date:2023-06-14 12:34:19
Update:2023-06-15 18:30:38
 

  1. Just-in-time compilation   Reply   Report abuse  
Picture of Ramesh Narayan Jangid Ramesh Narayan Jangid - 2023-06-14 17:28:49
PHP 8 supports JIT (Just-in-time) compilation.

Wiki: Just-in-time compilation
en.wikipedia.org/wiki/Just-in-time_ ...

PHP 8: JIT support makes PHP competitive to static languages with help of Opcache and Opcodes
php.watch/versions/8.0/JIT#:~:text=PHP%208.0%20brings%20support%20for,step%20to%20improve%20its%20performance.

Thanks.

  2. Re: Just-in-time compilation   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2023-06-15 14:16:59 - In reply to message 1 from Ramesh Narayan Jangid
Thank you for reminding our readers about the great improvements of PHP 8. It is easier to understand its benefit than to explain. It is certainly a good aspect that contributes to the great performance of PHP 8.

  3. Re: Just-in-time compilation   Reply   Report abuse  
Picture of David Tamas David Tamas - 2023-06-15 18:30:38 - In reply to message 1 from Ramesh Narayan Jangid
In many cases, JIT is a great solution to increase performance. The problem I mentioned is caused by the fact that in PHP each file is a completely independent entity. They have no information about their environment or about other referenced PHP files and the classes they contain. For this reason, it is not possible to optimize the interactions between the data and definitions in local and external PHP files either through the opcache or the JIT.