Development and databases

PHP versions available on all hosting services

Reviewed on 5 min read PHP versions

Hostsuar offers several PHP branches for current and legacy applications. You can see the ones you can apply to your service in Hosting > PHP, when you change a website's version, or in cPanel's Select PHP Version.

The documented catalogue includes these branches, subject to their availability on the server:

  • PHP 5.2
  • PHP 5.3
  • PHP 5.4
  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • PHP 7.1
  • PHP 7.2
  • PHP 7.3
  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3
  • PHP 8.4
  • PHP 8.5

The list is updated when CloudLinux adds a new branch. Older branches remain available for the applications that need them, and we have no plans to withdraw them.

All versions work and receive patches

CloudLinux maintains its own PHP branches with HardenedPHP and applies security fixes to them, including those the PHP project no longer releases fixes for. That is why any version on the list works and is patched. See the scope of HardenedPHP.

The PHP project only publishes security patches for these branches, and until these dates, according to its supported versions:

Branch Official patches until
PHP 8.2 31 December 2026
PHP 8.3 31 December 2027
PHP 8.4 31 December 2028
PHP 8.5 31 December 2029

The other branches on the list keep receiving fixes here thanks to HardenedPHP.

HardenedPHP fixes the interpreter, not your application: it does not update WordPress, its plugins, the framework or Composer libraries. Keep your software up to date.

Which version to choose

What decides the version is your application. On each website's page, in Hosting > PHP, you see the range of versions its application declares when we recognise it, and the recommended one: the best-performing version within that range. Newer versions are usually faster, and more and more plugins and themes are dropping support for older ones.

These are the ranges each project declares in its official documentation, checked on 14 September 2026. Plugins, modules and themes may require a narrower one.

Application Version PHP
WordPress 7.0 7.4 to 8.5
WordPress 6.9 7.2 to 8.5
WordPress 6.7 and 6.8 7.2 to 8.4
PrestaShop 9.1 8.1 to 8.5
PrestaShop 9.0 8.1 to 8.4
PrestaShop 8 7.2 to 8.1
PrestaShop 1.7.8 7.1 to 7.4
Joomla 6.0 8.3 to 8.4
Joomla 5.4 8.1 to 8.5
Drupal 11.3 8.3 to 8.5
Drupal 10.4 or later 8.1 to 8.4
Magento 2.4.8 8.3 to 8.4
Laravel 13 8.3 to 8.5
Laravel 12 8.2 to 8.5

Before changing, keep a backup and review your application's requirements. Afterwards, check the website, the admin area, forms, scheduled tasks and error logs.

If the website depends on an old branch, you can keep it with no problem while you prepare the upgrade on a test copy. To change the version with a compatibility study, checks and rollback, follow Change a website's PHP version.

To change a version's extensions or limits, use the Extensions and Limits tabs on the website's page, or the PHP version, modules and configuration section in cPanel.

Typical errors after changing

What you see What is happening What to do
The website returns a 500 error or a blank page right after the change The new version is missing an extension the website used: each version has its own list. Check the website's Extensions tab. When you change from the client area, we try to turn on in the new version the ones you had; if you changed in cPanel, turn them on yourself in that version.
Your server is running PHP version … but WordPress … requires at least …. The version is older than that WordPress's minimum. Raise that website's version.
Composer detected issues in your platform: Your Composer dependencies require a PHP version The libraries installed with Composer need a newer version. Raise the version or reinstall the dependencies with the version you are going to use.
Call to undefined function mysql_connect() Old code: the mysql_* functions were removed in PHP 7.0. Keep PHP 5.6 while you adapt the application to mysqli or PDO.
Call to undefined function create_function() PHP 8.0 removed create_function(). Keep PHP 7.4 while you update the plugin or code that uses it.
The website works, but the cron job or a terminal command fails The terminal and cron use their own PHP, not the website's. Call the version's binary by its full path, for example /opt/alt/php84/usr/bin/php.

If you made the change from the client area and the website stops responding, we roll it back automatically; if you notice the fault later, you have 24 hours to restore the previous version with one button.

You may also find useful

Something wrong or out of date? Tell us and we will review it.