Learn more about using PHP on Pantheon.Discuss in our Forum Discuss in Slack
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.
Sites that run older PHP versions not listed above will continue to serve pages. However, new development cannot be done because the development environment behavior is undefined and no longer supported. You can upgrade your PHP version in the development environment to resume development on your site.
* New Relic is not supported in PHP 8.2
** WordPress is not fully compatible with PHP 8.1+.
Refer to Managing Drush Versions on Pantheon for detailed compatibility information.
Refer to Version Updates for detailed compatibility information.