PHP on Pantheon
Introduction
Learn more about using PHP on Pantheon.
PHP is a scripting language that facilitates server-side web development. The PHP code in your Pantheon account is executed at runtime whenever a request is received from the web server the same way it is on other platforms.
Supported PHP Versions
Pantheon supports the following PHP versions:
Click the links below to display complete PHP information for each version, including details of supported PHP extensions.
| Version | Available | Recommended | End of Sale | End of Support | Removal Date |
|---|---|---|---|---|---|
| Fully Supported | |||||
| 8.5 | ✔ | ✔ | TBD | TBD | TBD |
| 8.4 | ✔ | ✔ | TBD | TBD | TBD |
| 8.3 | ✔ | ✔ | TBD | TBD | TBD |
| 8.2 | ✔ | ✔ | TBD | TBD | TBD |
| 7.4 | ✔ | ❌ | December 31, 2026 | TBD | TBD |
| End of Sale | |||||
| 8.1 | Existing sites only | ❌ | September 30, 2026 | TBD | TBD |
| End of Support and planned for Removal - Grace period in effect | |||||
| 8.0 | Existing sites only | ❌ | May 1, 2026 | September 30, 2026 | Grace Period |
| 7.3 | Existing sites only | ❌ | May 1, 2026 | September 30, 2026 | Grace Period |
| 7.2 | Existing sites only | ❌ | May 1, 2026 | September 30, 2026 | Grace Period |
| 7.1 | Existing sites only | ❌ | May 15, 2024 | September 30, 2026 | Grace Period |
| 7.0 | Existing sites only | ❌ | May 15, 2024 | September 30, 2026 | Grace Period |
| 5.6 | Existing sites only | ❌ | May 15, 2024 | September 30, 2026 | Grace Period |
- Fully Supported — Available, recommended, and receives upstream security patches automatically.
- End of Sale — No longer available for new sites. Existing sites continue; patches still provided where available.
- End of Support — No longer supported upstream. Customers assume additional security risk by staying on these versions.
- Removal Date — This PHP version will no longer be available on the platform. Sites still running a removed version will be automatically upgraded to the oldest available PHP version, which may result in broken functionality if the site's code has not been updated for compatibility.
- Grace Period - Removal from the Pantheon platform is imminent. While Pantheon still receives some updates to these EOS versions, we strongly recommend upgrading sites to supported versions. As of September 30, 2026, Pantheon will no longer provide software patches for these versions unless available in upstream open source repositories or from Pantheon contracted vendors, and future platform features will not be backward compatible. By remaining on this version, you accept the risk of unpatched vulnerabilities and release Pantheon from associated liability. Pantheon will provide 90 days advance notice before requiring removal of a PHP version from the Pantheon platform.
While sites previously configured with unlisted versions of PHP may continue running those versions, a site with a listed PHP version cannot be configured to an older, unlisted PHP version.
Drush Compatibility
Refer to Managing Drush Versions on Pantheon for detailed compatibility information.
Terminus Compatibility
Refer to Version Updates for detailed compatibility information.