Why Upgrade Your Site to PHP 7.x — TD Web Services

Juan Woods
4 min readJun 15, 2021

--

PHP is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML which is why most of Content Management Systems like WordPress, Magento, Drupal, Joomla etc use PHP. It is not just limited to such site, but a lot of Opensource applications like SugarCRM, osTickets, etc use PHP for their application. TD Web Services provides over 1 Click 400+ PHP Based Applications/scripts within our Business Hosting.

Why Upgrade to PHP 7.4?

It’s Crazy Fast

Stats! Stats! Stats! will give us tangible results. Just don’t take our word for it. PHP Performance tests were done on an AMD EPYC 7642 server running Ubuntu 19.10.

More control over type declarations

PHP doesn’t require you to declare your variable type, it takes it automatically. This helps to code faster but also results in errors; because it doesn’t always catch if you’re mixing things up. With PHP 7, you can override the assumptions and declare your own variable with some super useful new techniques, giving you more control and cleaner code.

Preloading for Improved Performance

A boost in performance is always welcome. With PHP 7.4, you can configure opcache to compile your code files first, and then save them in shared memory.

Doing this enables you to make these files freely available, rather than having to compile them every time there is a request

Better Error Handling

All PHP developers dread White Screen of Death. Previously PHP will stop working as soon as it encounters an error. With PHP 7 it enable you to write exceptions for some of the errors and catch those exceptions. This will not allow the script to shut itself down. Your website or application will keep on working.

Many Other Features

There are a lot of other features, like support for emoji’s, new operators, better security with CSPRNG (basically using OS’s Random Number Generator — used for Salting of passwords).

What Does PHP 7.4 Mean for WordPress Users?

Accordingly WordPress’s official stats it’s around 1% of sites using PHP 7.4. As of November 2019, WordPress.org actually bumped up their official recommendation for users from PHP 5.6 to PHP 7.4or greater. You can see that a large majority of users, over 29%, are still running on PHP 5.6. What’s even scarier is that over 39% of users are using unsupported PHP versions.

Most of the website owners are dependent on their hosting providers to either install PHP Version on their hosting or most of the hosting providers just don’t support it. With TD Web Services, we are always ahead of the curve. We give you easy access within your cPanel to make switch to your PHP Versions. Giving you a lot more control.

How to Upgrade your PHP Versions

TD Web Services enabled PHP 7.4 support on 1st December 2019. We provide PHP with FPM making your PHP experience much faster.

Log in to your control panel. Scroll down to Software Section. Click on MultiPHP Manager

All you need to now need to do is select the domain and select the PHP Version you want to apply. That’s it.

It is that simple to move to PHP 7.4!

If you are with a different hosting provider, you will need to ask their support to switch you to PHP 7.4.

Conclusion

Hopefully, by now you would have made a switch to PHP 7.4 on TD Web Services. If you’re not a TD Web Services customer yet but like the way this sounds, give us a test run — you can spin up a free, PHP 7.4-ready demo site or even submit a migration request. (We migrate your sites to TD Web Services for free, too!)

Originally published at https://tdwebservices.com on June 15, 2021.

--

--