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 | Removal Date |
|---|---|---|---|---|
| 8.4 | ✔ | ✔ | TBD | TBD |
| 8.3 | ✔ | ✔ | TBD | TBD |
| 8.2 | ✔ | ✔ | TBD | TBD |
| 8.1 | ✔ | ❌ | September 30, 2026 | TBD |
| 8.0 | ✔ | ❌ | May 1, 2026 | September 30, 2026 |
| 7.4 | ✔ | ❌ | TBD | TBD |
| 7.3 | ✔ | ❌ | May 1, 2026 | September 30, 2026 |
| 7.2 | ✔ | ❌ | May 1, 2026 | September 30, 2026 |
- End of Sale — No new sites can be created with this PHP version. Existing sites already running the version will continue to operate.
- 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.
- TBD — Pantheon guarantees at least 9 months of advance notice before any PHP version is removed from the 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.