{"id":4309,"date":"2020-01-14T11:06:53","date_gmt":"2020-01-14T05:36:53","guid":{"rendered":"https:\/\/www.idslogic.com\/blog\/?p=4309"},"modified":"2025-02-27T14:20:09","modified_gmt":"2025-02-27T08:50:09","slug":"php-8-0-release-and-the-jit-support","status":"publish","type":"post","link":"https:\/\/www.idslogic.com\/blog\/php-8-0-release-and-the-jit-support","title":{"rendered":"PHP 8.0 Release and the JIT Support"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_72 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.idslogic.com\/blog\/php-8-0-release-and-the-jit-support\/#The_Inclusion_of_Just_in_Time_in_PHP\" title=\"The Inclusion of Just in Time in PHP:\">The Inclusion of Just in Time in PHP:<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.idslogic.com\/blog\/php-8-0-release-and-the-jit-support\/#Why_PHP_has_Decided_to_Introduce_JIT\" title=\"Why PHP has Decided to Introduce JIT?\">Why PHP has Decided to Introduce JIT?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p><span style=\"font-size: 14pt;\">PHP has always been the most popular server side language that has helped the developers to create professional business websites. We know that PHP 7 has been awesome and had come up with huge improvements over PHP 5 in terms of performance and speed. Also it has brought with it a better user experience. But with time, it requires updates and so the next release is PHP 8 and users have very high expectations from it.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Though the release of PHP 8.0 is not scheduled yet, but as it is one of the major leaps, it will take some years. It takes years for the PHP group to release a major update and so it is assumed that the PHP 8 version will come out in September 2021, but there is no confirmation as yet.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"The_Inclusion_of_Just_in_Time_in_PHP\"><\/span><span style=\"font-size: 14pt; color: #008000;\"><strong><span style=\"font-size: 18pt;\">The Inclusion of Just in Time in PHP:<\/span> <\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-size: 14pt;\">There is not information about the features that will be included in the latest <span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/www.idslogic.com\/php-development\/\">PHP development<\/a><\/span> version, but there is a strong speculation that there will be JIT compilation. It is a dynamic compilation process which yields faster results than static or before runtime compilation processes. Most Java and .NET frameworks are dependent on JIT and it is fair for PHP to take advantage of the dynamic compilation and enhance its performance to the next level.\u00a0 Zend has started developing a new JIT Engine and it is likely to be integrated with the major version of PHP, whenever the engine is ready and tested for launch.<\/span><\/p>\n<blockquote>\n<p style=\"box-shadow: 0 0 16px #cccccc; padding: 10px;\"><span style=\"font-size: 14pt;\"><strong>Also Read: <\/strong><a href=\"\/blog\/latest-php-trends-of-2020-that-will-benefit-your-business-website\"><span style=\"color: #ff0000;\">Latest PHP Trends of 2020 That Will Benefit Your Business Website<\/span><\/a><\/span><\/p>\n<\/blockquote>\n<p><span style=\"font-size: 14pt;\">A spokesperson from Zend has also commented that they want to deliver some other useful features in the next major update. Just in time or JIT is a way of optimizing the running code during compilation and this method is already used by the Java Virtual Machine, HHVM and the V8 JavaScript VM. So JIT is nothing new.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Initially, before the evolution and release of PHP 7, it focused on improving the performance by using a JIT. This yielded substantial improvements, but it provided little development in real world applications like Joomla and WordPress.\u00a0 After it proved significant improvements in PHP 7.0, the later versions 7.1 and 7.2 have been rather modest.\u00a0 And this became the reason for the team to work on the JIT implementation once again in the PHP 8.0 version. So a code that is written in PHP 7, when implemented in the latest version of PHP 8, the execution time will be reduced by half.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_PHP_has_Decided_to_Introduce_JIT\"><\/span><span style=\"font-size: 16pt;\"><strong><span style=\"color: #003366;\">Why PHP has Decided to Introduce JIT?<\/span> <\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-size: 14pt;\">PHP has done many improvements in its previous versions, which included the optimizations for the HashTable, specializations in the Zend VM, in the compiler for certain sequences and etc. After so many improvements JIT is the next ability to improve further.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">With the JIT support, <span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/www.idslogic.com\/php-developer\/\">PHP developers<\/a><\/span> will be able to create built-in functions instead of C without having any huge performance penalty. This will make the framework less susceptible to overflows, memory management and other issues that are associated with C developments.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">By adding the support of JIT in PHP, it will allow the use in scenarios for which it is not considered today that is in other CPU intensive scenarios, or in other non-web scenarios where the performance benefits will be very substantial.<\/span><\/p>\n<blockquote>\n<p style=\"box-shadow: 0 0 16px #cccccc; padding: 10px;\"><span style=\"font-size: 14pt;\"><strong>Also Read: <\/strong><a href=\"\/blog\/useful-php-techniques-that-every-developer-should-know\"><span style=\"color: #ff0000;\">Useful PHP Techniques That Every Developer Should Know<\/span><\/a><\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>PHP has always been the most popular server side language that has helped the developers to create professional business websites. We know that PHP 7 has been awesome and had come up with huge improvements over PHP 5 in terms&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4310,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[104],"tags":[448,650],"class_list":["post-4309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-development","tag-php-development","tag-php-development-company"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts\/4309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/comments?post=4309"}],"version-history":[{"count":3,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts\/4309\/revisions"}],"predecessor-version":[{"id":11260,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/posts\/4309\/revisions\/11260"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/media\/4310"}],"wp:attachment":[{"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/media?parent=4309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/categories?post=4309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.idslogic.com\/blog\/wp-json\/wp\/v2\/tags?post=4309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}