---
title: "PHP End-of-Life Resources"
date: "2024-07-10T19:43:05+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/88726-php-end-life-resources"
id: "ff87dec8-da3e-4bd3-9957-ce25cc24d4ba"
---

Keeping your application secure and up to date is an important part of application maintenance.

Due to end of security compliance for PHP 7.4 and PHP 8.0, Acquia Cloud applications will be upgraded to PHP 8.2 automatically as part of regular maintenance, as communicated to customers by email and [Software End-of-Life Schedule](/node/55892) documentation. On 1 October, 2025 we will be retiring PHP 8.1 for both Non-Prod and Production environments.

*   **Do you need more time?** Acquia no longer provides security support for Drupal 7. However, Acquia recognizes that not all customers could migrate their Drupal 7 applications to a later version by November 30, 2025, and is committed to ensuring that the platform remains compatible with Drupal 7  Therefore, Acquia has partnered with HeroDevs to offer Never-Ending Support (NES) for Drupal 7. This program ensures that Drupal 7 applications receive any and all security updates. While purchasing this offering is not mandatory for customers, Acquia strongly recommends it as it provides a clear, official path to remain on Drupal 7 safely while they plan their migration. For more information about this offering, visit [this article](https://www.herodevs.com/support/nes-drupal).
*   **Do you need assistance in the PHP Upgrade?** Contact your Account manager about Acquia's Professional Services PHP Upgrade Assistance package. Acquia Professional Services can assist in upgrading your Drupal Core version and PHP version to a security compliant version.
*   **Do you want to upgrade yourself?** If you choose to upgrade your PHP version yourself, Acquia recommends you should upgrade your non-production applications to test for any incompatibilities in your application. We recommend beginning with your non-production upgrades as soon as possible to ensure you have time to test, prior to upgrading your production application. Once you have resolved any incompatibilities, upgrade your production environment before the end-of-life deadline. See [preparing for your php upgrade tutorial](/acquia-cloud-platform/help/90006-preparing-your-php-81-upgrade "Preparing Your PHP 8.1 Upgrade") for instructions on changing your PHP version.

If your application is facing compatibility issues that are preventing your upgrade to PHP 8.x or higher, Acquia recommends upgrading your application's Drupal version to ensure that your application remains secure and functional. If you are in need of assistance to upgrade your Drupal application, please contact your account manager in order to discuss ways our Professional Services team could provide additional support through an engagement.

[Step by Step Guide to upgrading your PHP version on Acquia](/acquia-cloud-platform/help/90006-preparing-your-php-81-upgrade "Preparing Your PHP 8.1 Upgrade") 

See how each version of Drupal supports PHP 8.x
-----------------------------------------------

[D7.x](#230548828-3984645203)

Applications using Drupal 7.x will need to upgrade their Drupal core to Drupal 7.79 or higher in order to upgrade from PHP 7.4 to PHP 8.0. Some modules designed for Drupal 7 may be incompatible with PHP 8.0. More information regarding Drupal 7.x compatibility with PHP 8.0 please see the documentation available on [Drupal.org](https://www.drupal.org/docs/7/system-requirements/php-requirements).

See [What does it take to upgrade from Drupal 7 to Drupal 9](/acquia-cloud-platform/help/90426-d7-d9-migrations-how-they-work-acquia "D7 to D9 Migrations: How They Work on Acquia")

[D8.x](#230548828-905006202)

As Drupal 8.x has reached its end of life with [Drupal.org](http://drupal.org/), no version of Drupal 8.x is compatible with PHP 8.0. If an application is still utilizing Drupal 8.x, it will need to be upgraded to Drupal 9.1 or higher in order to upgrade from PHP 7.4 to PHP 8.0 or you will need to purchase long-term support for PHP 7.4. Please contact your account manager in order to discuss these options as needed.

[D9.x](#230548828-1895817993)

Drupal 9.x customers we recommend upgrading your Drupal core to Drupal 9.3.0 or higher prior to implementing PHP 8.1. More information can be found [here](http://clicks.maintenance.acquia.com/f/a/jvdj-I_kaJcIYQjZIeqs4A~~/AACuKQA~/RgRlBIR2P4Q4AWh0dHBzOi8vYWNxdWlhLWN1c3RvbWVyLWNvbW11bmljYXRpb25zLm1hdXRpYy5uZXQvci9mOTk0OTBkMmFmZmUzYmFlNGVjMmYyODViP2N0PVlUbzFPbnR6T2pZNkluTnZkWEpqWlNJN1lUb3lPbnRwT2pBN2N6bzFPaUpsYldGcGJDSTdhVG94TzJrNk5UUTFPMzF6T2pVNkltVnRZV2xzSWp0cE9qVTBOVHR6T2pRNkluTjBZWFFpTzNNNk1qSTZJall6TWpGbVpqYzBNVGcyWm1FME5UVXhNakV6TnpVaU8zTTZORG9pYkdWaFpDSTdjem8wT2lJeU9EazJJanR6T2pjNkltTm9ZVzV1Wld3aU8yRTZNVHA3Y3pvMU9pSmxiV0ZwYkNJN2FUbzFORFU3ZlgwJTNEJlcDc3BjQgpjF3b_IWN9cSSoUhZhbGxpZS5qb25lc0BhY3F1aWEuY29tWAQAAAMK).

[D10.x](#230548828-4030086534)

For customers who intend to upgrade their Drupal core to Drupal 10 in the future Acquia recommends updating to PHP 8.1 over PHP 8.0 as PHP 8.1 or higher is required to complete upgrading your Drupal core to Drupal 10. More information can be found [here](http://clicks.maintenance.acquia.com/f/a/jvdj-I_kaJcIYQjZIeqs4A~~/AACuKQA~/RgRlBIR2P4Q4AWh0dHBzOi8vYWNxdWlhLWN1c3RvbWVyLWNvbW11bmljYXRpb25zLm1hdXRpYy5uZXQvci9mOTk0OTBkMmFmZmUzYmFlNGVjMmYyODViP2N0PVlUbzFPbnR6T2pZNkluTnZkWEpqWlNJN1lUb3lPbnRwT2pBN2N6bzFPaUpsYldGcGJDSTdhVG94TzJrNk5UUTFPMzF6T2pVNkltVnRZV2xzSWp0cE9qVTBOVHR6T2pRNkluTjBZWFFpTzNNNk1qSTZJall6TWpGbVpqYzBNVGcyWm1FME5UVXhNakV6TnpVaU8zTTZORG9pYkdWaFpDSTdjem8wT2lJeU9EazJJanR6T2pjNkltTm9ZVzV1Wld3aU8yRTZNVHA3Y3pvMU9pSmxiV0ZwYkNJN2FUbzFORFU3ZlgwJTNEJlcDc3BjQgpjF3b_IWN9cSSoUhZhbGxpZS5qb25lc0BhY3F1aWEuY29tWAQAAAMK).

### Resource Links

*   [Preparing For Your PHP 8.1 Upgrade](/acquia-cloud-platform/help/90006-preparing-your-php-81-upgrade "Preparing Your PHP 8.1 Upgrade")
*   [Configuring PHP settings](/node/56299)
*   [Drupal PHP Requirements](https://www.drupal.org/docs/7/system-requirements/php-requirements)
*   [Software End-of-Life Schedule](/node/55892)
*   [Drupal 7 to 9 migration plan webinar](https://www.acquia.com/events/webinars/drupal-7-end-life-coming-build-your-drupal-9-migration-plan-now)
*   [Acquia Support](/service-offerings/contacting-acquia-support "Contacting Acquia Support")

### Dev Resources

*   [Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer)
*   [PHP Compatibility Checker](https://github.com/PHPCompatibility/PHPCompatibility)
*   [Contrib Module's with PHP 8.1 issue queue](https://www.drupal.org/project/issues/search?issue_tags=PHP%208.1)
*   [Drupal Rector](https://www.drupal.org/project/rector)
*   [PHPStan](https://phpstan.org/)
*   [Drupal Check](https://github.com/mglaman/drupal-check)

### Modules and Libraries with known PHP 8.x Compatibility Issues

*   [Forena Reports](https://www.drupal.org/project/forena): issue: [PHP 7.4 and PHP 8.1 compatibility](https://www.drupal.org/project/forena/issues/3302287)
*   Behat is currently not compatible with PHP 8.1 because of the [Behat Drupal Extension](https://www.drupal.org/project/drupalextension)

Common scenarios when upgrading to PHP 8.x
------------------------------------------

[Scenario: We want to leapfrog 8.0 and just switch from 7.4 to 8.1](#230548828-2711813620)

As a general rule we do not recommend skipping versions. Upgrade PHP to 8.0 and then to 8.1.

*   For a customer using Acquia Pipelines and doing this upgrade must first try to run pipeline using 8.0, before trying PHP 8.1. For more information, visit [this article](https://github.com/acquia/blt/pull/4373).

[Scenario: It can take 30 minutes for the PHP switch to occur on classic cloud; also sometimes this fails](#230548828-3888620024)

The amount of time it takes to upgrade can change depending on how many dependencies your repository has. If you feel the upgrade is taking too long you can file a [S](/node/55832)[upport ticket](/node/55832) through your cloud interface.

[Scenario: PHP 8.x is “working just fine!” in my local container, but my build fails in Acquia Pipelines. The composer.json file and the acquia-pipelines.yml file are updated.](#230548828-3453383373)

Order of operations are important. Check your logs to make sure your dependencies are updating in the correct order.

[Scenario: We are still using BLT 12.8 instead of BLT 13 and don’t want to upgrade just to make the PHP version switch because it will require updates to my simplesamlphp integration](#230548828-1641489983)

BLT 12 added [Drupal 9 support](https://acquia.my.site.com/s/article/360045796154-Upgrading-from-BLT-11-to-BLT-12) while BLT 13 updated pipelines for [PHP 8 and Composer 2](https://github.com/acquia/blt/releases/tag/13.0.0).The specific pipelines commit added in BLT 13 is at [https://github.com/acquia/blt/pull/4373](https://github.com/acquia/blt/pull/4373).For a customer using Acquia Pipelines and doing this upgrade, I would definitely try running pipeline using 8.0 first, before trying 8.1.

[Scenario: We are concerned about Acquia Purge deprecation warnings with PHP 8.1.](#230548828-1255859013)

Use the dev version of [Acquia Purge](https://www.drupal.org/project/acquia_purge).  
  
`$ composer require 'drupal/purge:3.x-dev@dev'`

[Scenario: Drush Issues with PHP 8.x.](#230548828-2614566424)

In order to continue to use Drush you must use a version of Drush that is compatible with PHP 8.x. See [Drush's documentation on Drush and PHP compatibility](https://www.drush.org/latest/install/#drupal-compatibility).

Acquia recommends you require a site-local Drush as part of your codebase, [not your home directory](/node/55869), and run your commands with a specific major version of Drush. It is dangerous to run the globally-installed version of Drush because the behavior of your cron jobs, Cloud Hooks, or other automated scripts may change unexpectedly when a new version of Drush becomes the default [See Drush's documentation on how to install drush with composer.](https://www.drush.org/latest/install/)

`composer require drush/drush`

![Table showing Drush versions, PHP requirements, end-of-life dates, and compatibility with Drupal versions 7, 8, and 9.](https://acquia.widen.net/content/9f7b919c-cf13-4e3a-b893-176dad78b8f4/web/url_2a4d6592e7d3f62f9a8319743c580f12.webp)

[Scenario: I am on Drupal Core 8.x, do I have to upgrade to Drupal 9.x?](#230548828-2564341737)

D8 is not compatible with PHP 8, so yes you will either have to upgrade Drupal version and PHP version.