Is your website ready for PHP 7?
PHP 5.6 will only be supported on our servers until June 2022. After that the default version of the PHP settings will automatically be changed to PHP 7.2 (you can change) this at any time.
PHP 7 is a new major version. Basically nothing should stand in the way of a problem-free migration from PHP 5.6 to 7.2, but we recommend that you clarify the following points in advance:
1. Incompatible functionalities
Due to some remote functionalities in PHP 7.2, existing codes have to be tested with the new version to be on the safe side and code adjustments have to be made. The most important changes are:
- The indirect access to variables, properties and methods will be evaluated more strictly:
PHP 5 - up to now ${$foo['bar']['baz']} PHP 7 - new ($$foo)['bar']['baz'] )
- As of PHP 7.2, ext/mysql is no longer supported. Therefore it would be necessary to adapt to ext/pdo_mysql or ext/mysqli. With the tool MySQL wrapper for MySQLi this adjustment is simplified for you!
All the uncompatible functionalities that apply to the versions of PHP 7 are listed in detail on the official PHP website under Migrating from PHP 5.6 to PHP 7.
The phan und phpstan tools will help you check your code for compatibility with PHP 7.2.
2. CMS Installations
The most commonly used CMS (Content-Management-Systems) in the current versions are all compatible with PHP 7, as follows:
Contao | Version 3.5.5 or higher |
Drupal | Drupal 7 as well as Drupal 8 |
Joomla | Version 3.5 Version 3.7 or higher compatible with PHP 7.2 |
Typo 3 | Version 7 LTS and higher |
WordPress | Version 4.4 or higher |
WP Plugins & Themes | Checking with the Plugin PHP Compatibility Checker |