Supported PHP versions (original) (raw)

Supported PHP versions

The Cloud Client Libraries for PHP are compatible with at least the three most recent, major PHP releases. This means that the PHP client libraries are compatible with allactively supported PHP releases. PHP releases a new major version every 12 months, with two active versions and one version receiving security fixes only.

For example, if the current Cloud Client Libraries for PHP release is PHP 8.1, the client libraries are compatible with PHP 8.1, PHP 8.0, and PHP 7.4. The libraries will always be compatible with at least one GA runtime for App Engine and Cloud Run functions. For more information, seeClient libraries explained.

For new development

When starting a new project for new development, we recommend that you use thecurrent release of PHP. This ensures that your runtime uses a supported PHP release and receives critical security patches.

Keeping production systems current

Keeping your production systems on supported PHP versions is the best way to ensure that you receive critical security and bug fixes. When Cloud Client Libraries for PHP increment a minor version they may drop compatibility with a previous PHP version. When a new version of a library becomes available that drops support for a PHP version, consider upgrading your runtime to the latest version of PHP. For more information about the use of major and minor versions, seeSemantic Versioning.

Where to find version information

To find out what PHP versions are supported, see theGoogle Cloud Client Libraries for PHPpage.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-12 UTC.