• Plans & Pricing (On Sale!)
  • Client Login
Web Hosting Blog from MonsterMegs Web Hosting Blog from MonsterMegs
  • Plans & Pricing (On Sale!)
  • Client Login

PHP 8 Now Available on All Servers

  • Admin
  • January 13, 2021
  • 2 minute read
PHP 8 Now Available on All Servers 1

We’re happy to announce that we have deployed the latest release of PHP 8 on all our hosting servers. The last time a major version was released was 2015, which was ages ago in Internet time.  As always we are among the first companies to provide the new PHP on their hosting platform. PHP 8 is expected to facilitate developers to write cleaner code with better quality that gets executed faster.

Table of Contents
1. What are the PHP 8 improvements and features
1.1. Just-in-Time (JIT) Compiler
1.2. Constructor Property Promotion
1.3. Support for Union Types
1.4. Reclassified Engine Warnings
2. How to take advantage of PHP 8 on our platform?

What are the PHP 8 improvements and features

Just-in-Time (JIT) Compiler

One of the most anticipated features of PHP 8 is the JIT compiler, which pretty radically changes what is possible with PHP. 

There are three reasons for its introduction:

  • it allows for further optimization that would not be possible without it
  • it may open the door for PHP being more frequently used in other, non-Web, CPU-intensive scenarios 
  • it can eventually provide users with the ability to develop built-in functions in PHP, instead of (or in addition to) C, facilitating future innovation

The PHP team has said,

PHP JIT is implemented as an almost independent part of OPcache. It may be enabled/disabled at PHP compile time and at run-time. When enabled, native code of PHP files is stored in an additional region of the OPcache shared memory and op_array->opcodes[].handler(s) keep pointers to the entry points of JIT-ed code. This approach doesn’t require engine modification at all.

Constructor Property Promotion

It’s no secret that currently, PHP has a clunky way of dealing with objects. In all previous versions of PHP, the definition of simple value objects requires all properties to be repeated at least four times: in the property declaration, the constructor parameters, and twice in the property assignment. 

Borrowing some syntax from PHP sister language Hack, the constructor property promotion introduces a shorthand syntax, which allows combining the definition of properties and the constructor.

Support for Union Types

Before PHP 8, properties, parameters, and return types could only have one type. With PHP 8, users can now declare more than one type for arguments, return types, and class properties.

Reclassified Engine Warnings

In PHP 8.0, the development team revisited engine warnings, many of which were outdated relative to their actual seriousness, for historical reasons. For example, accessing an undefined variable, while being a very severe programming error, only generates a notice. Here is a table of the redefined error types and their new level of warnings.

How to take advantage of PHP 8 on our platform?

All our clients can change the PHP version of their sites from within their cPanel by going to cPanel -> Software-> Select PHP Version. With PHP 8 being relatively new, we strongly advise that you do not enable it for your live sites, but run tests with it on a staging environment. 

At the moment, we have deployed PHP 8 without the following modules: mcrypt, geoip, ioncube. These will become available on a later date as they are released for PHP 8.

Share 1
Tweet 0
Pin it 0
Share 0
Share 0
You May Also Like
Stay in the Loop with Our New Service Status Page 2
View Post
  • 2 min

Stay in the Loop with Our New Service Status Page

  • February 24, 2023
Boost Your WordPress Site's Speed with LiteSpeed Cache 3
View Post
  • 5 min

Boost Your WordPress Site’s Speed with LiteSpeed Cache

  • December 29, 2022
Introducing Mail.Baby (MailChannels) Email Delivery 4
View Post
  • 3 min

Introducing Mail.Baby (MailChannels) Email Delivery

  • February 18, 2022
Introducing Imunify360 - AI Powered Security Suite 5
View Post
  • 4 min

Introducing Imunify360 – AI Powered Security Suite

  • April 5, 2021
What is Semi-Dedicated Hosting? 6
View Post
  • 4 min

What is Semi-Dedicated Hosting?

  • November 23, 2020
Buying Web Hosting With Bitcoin 7
View Post
  • 3 min

Buying Web Hosting With Bitcoin

  • November 17, 2020
Automatic Wordpress Backups Using CodeGuard 8
View Post
  • 2 min

Automatic WordPress Backups Using CodeGuard

  • October 21, 2020
COVID-19: MonsterMegs Status on Service & Our Customers 9
View Post
  • 1 min

COVID-19: MonsterMegs Status on Service & Our Customers

  • April 5, 2020

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Stay in the Loop with Our New Service Status Page 10
    Stay in the Loop with Our New Service Status Page
    • February 24, 2023
  • Boost Your WordPress Site's Speed with LiteSpeed Cache 11
    Boost Your WordPress Site’s Speed with LiteSpeed Cache
    • December 29, 2022
  • Introducing Mail.Baby (MailChannels) Email Delivery 12
    Introducing Mail.Baby (MailChannels) Email Delivery
    • February 18, 2022
  • Introducing Imunify360 - AI Powered Security Suite 13
    Introducing Imunify360 – AI Powered Security Suite
    • April 5, 2021
  • PHP 8 Now Available on All Servers 14
    PHP 8 Now Available on All Servers
    • January 13, 2021

Subscribe now to our newsletter

  • Shared Hosting
  • Reseller Hosting
  • Semi-Dedicated Hosting
  • Domain Registration
© 2022 MONSTERMEGS, INC. ALL RIGHTS RESERVED

Input your search keywords and press Enter.