

#Php versions code#
However, this code never runs, and all of our plugins are PHP7 compatible. For example, one of the payment gateways we build has a library bundled with it that flags a PHP7 notice. Sometimes there are false positives, as this doesn’t know whether code has a PHP version check, nor does it check if any problematic code actually runs.In our experience, they do enough checks to warrant moving to PHP7 if the checks pass, as they catch most serious issues. While they detect most issues, they’re not 100% reliable.However, there are a couple important things to note about compatibility checkers: If you’d like to ensure your site is PHP7 compatible, there are several compatibility checkers you can use to scan your site for incompatibilities. If you’d like to upgrade to PHP7, please ensure your site is compatible. Increasing site speed also helps your bottom line:Ī 1 second delay in page response can result in a 7% reduction in conversions. This version of PHP provides dramatic performance improvements, almost 50% faster in some cases.

While PHP 5.6 is sufficient, we highly recommend upgrading to PHP7 or newer if possible. Upgrading your site to a supported version of PHP, such as PHP 7.4, should pose no issues - plugins designed for PHP version as low as 5.6 will run in PHP 7.4 without any changes required 99.99% of the time. Less than 10% of sites using our plugins are still stuck on outdated, deprecated version of PHP, and these should be updated. This means the version no longer receives security updates or fixes, which can leave your site vulnerable. Any PHP version less than 7.2 has reached “end of life”. While older PHP versions are still supported, these are not versions of PHP any modern site should be using, especially not an eCommerce site. WordPress currently supports PHP versions 5.6+, but recommends PHP7 or newer. While this may not be something you can do yourself, it is important to know what PHP is and what your host should be doing to ensure your site is speedy and secure. If you’re reading this, you likely saw a notice in a WooCommerce extension that prompted you to upgrade your server’s PHP version.

Just like it’s important to keep WordPress and plugins up-to-date, it’s important to use updated versions of PHP for best security and performance. Just as WordPress or WooCommerce have version numbers to indicate updates, PHP also has version numbers to indicate updates to the programming language itself that make improvements to security, processing speed, or features that help developers build better software. PHP is the programming language upon which WordPress, WooCommerce, and WooCommerce extensions are built.
