Date Published: February 11, 2022
Checking PHP compatibilities prior to upgrading PHP versions
Any software upgrade can be nerve-wracking, as the various aspects of compatibility, feature availability, and potential downtime are weighed. As software ages, it becomes less supported; eventually, support for a given version is phased out completely. PHP, the language used by Drupal, is not immune to this, and upgrades to it should be planned accordingly.
Note
To keep track of Acquia's schedule for upgrading PHP, see the software end-of-life schedule.
When you're preparing to upgrade from one version of PHP to another, start with the PHP incompatibilities pages.
If you've checked these pages, and aren't completely sure you're compatible, or you'd prefer another check, you can use http://pear.php.net/package/PHP_CodeSniffer/. PHP CodeSniffer can provide you with a detailed list of issues that should be checked. It should give you a good place to start working on module and theme upgrades. PHPlint is another useful code checking tool.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.