Currently, the default PHP interpreter on our servers is PHP 5.6. The other supported versions of PHP are PHP 7.2, PHP 7.1, and PHP 5.3.
You can check the exact PHP versions on your server, as well as the currently default PHP interpreter for the server, at your online Control Panel -> System Information section.
Changing the PHP version for your account
If you do not wish to use the default PHP interpreter, you can set your account to use a different version of PHP, instead of relying on the default one. You can do this through the online Control Panel -> PHP Settings section, tab "Default PHP Interpreter".
Changing the PHP version for a certain folder only
You can "hardcode" certain folders to use a particular version of PHP. This is done with a directive in a .htaccess file.
To have PHP files parsed by the PHP 7.2 interpreter for a certain folder and its subfolders, you can add the following line in a .htaccess file (you might need to create one in the folder):
AddHandler application/x-httpd-php7 .php
To have PHP files parsed by the PHP 7.1 interpreter, you can add the following line:
AddHandler application/x-httpd-php71 .php
To have PHP files parsed by the PHP 5.3 interpreter, please use:
AddHandler application/x-httpd-php53 .php
If your PHP applications use the Zend Guard loader, please visit the section Using Zend Guard Loader.
If your PHP applications use the ionCube loader, please visit the section Using ionCube.
For additional information on switching between PHP 5.3 and and upper version, you can check the section Common problems when switching from PHP 5.3 to PHP 5.6.
PHP 5.3 is in end-of-life status, and there are no security releases for it. That's why, we may stop supporting PHP 5.3 on our servers at any time now. We strongly advise all customers to stop using it as soon as possible. Please note that the PHP 5.3 branch on our servers may not come with all standard PHP extensions, due to server software compatibility issues.