Speed Up Your WordPress or Drupal Site with PHP 7.3

Today we’re happy to announce PHP 7.3 is now officially supported on Pantheon. Soon we’ll also make it the default for WordPress and Drupal 8 sites. In the meantime, you can update with confidence using Pantheon’s Dev, Test, Live workflow, because your PHP version is managed in version control and deployed along with the rest of your code. See documentation on  Upgrading PHP versions for more information.

A rocket ship blasting off

PHP 7.3 Performance

PHP keeps getting faster! Phoronix’s benchmarking shows the following speedups with PHP 7.3:

  • 10% faster than 7.2

  • 31% faster than PHP 7.0

  • Nearly 300% faster than PHP5

Of course, PHP is only one element of the stack running your Drupal or WordPress site. Anonymous cached requests hitting the Global CDN don’t touch PHP at all, but speedups at this level mean any uncached request will be faster, which is especially important for authenticated users.

WordPress and Drupal 8 recommend PHP 7.3

It’s official: not only is PHP 7.3 supported by WordPress, but it’s now the recommended minimum version. Same goes for Drupal 8.6.4, which recommends PHP 7.3 Core and most third-party code, such as Drupal modules and WordPress plugins, should continue to work just fine with the latest version of PHP. If you do have problems with a module or plugin that does not work correctly, try upgrading to the newest version of the module or plugin. If that doesn’t work, then check out your php-error.log and search or create an upstream issue so the module maintainer can work to make it PHP 7.3 compatible.

Drupal 7 and PHP 7.3

PHP 7.3 support core Drupal 7 core is still in progress. For more information see Fully support PHP 7.3 in Drupal 7.

Sodium Crypto Library

The Sodium cryptographic library replaces the deprecated Mcrypt library and is now included in PHP 7.3. Sodium is a modern, easy-to-use software library for encryption, decryption, signatures, password hashing, and more. For more information about using Sodium in PHP, see https://www.php.net/manual/en/book.sodium.php.

PHP End of Life

It’s worth highlighting that the only actively supported versions of PHP currently are PHP 7.2 and PHP 7.3. While other versions of PHP may be available on the Pantheon platform, we recommend that you upgrade to a supported version as soon as possible. We will be sure to spread the word should we decide to remove any EOL’d versions from the platform.

Go forth and make awesome!

Now that you’ve updated your site to the latest and greatest PHP version, go forth and make awesome!


You may also like:

Topics Development, Drupal, Speed & Performance, Website Technology, WordPress