The latest version of PHP, PHP 8.2, was released on December 8, 2022, and is currently the most up-to-date version. The supported versions with security updates are PHP 8.0, 8.1, and 8.2, so it's recommended to use PHP 8.0 or higher for security reasons.
If you're in the market for affordable and high-value web hosting, it's worth considering well-known options like FastComet. While it may not be as fast as Amazon AWS or other options, using fast WordPress themes like GeneratePress can result in decent speeds, even for revenue-generating blogs. However, for sites where speed is crucial or for running e-commerce or important business sites, Cloudways is an excellent choice. With Cloudways, managing servers like Amazon AWS and Vultr is made easy. Just a heads up, if you click on any of the links in this article to sign up for web hosting services, I may receive a commission. However, I only recommend services that I have personally used for several years, such as Bluehost and Cloudways. Utilize the coupon code WPCAFE15 when registering for Cloudways to enjoy a 15% discount on your purchase.
Cloudways and Bluehost VPS have recently added support for PHP 8.2.
Cloudways previously only supported up to PHP 8.1. However, I recently checked and found that it has been upgraded to support PHP 8.2.
To change the PHP version on Cloudways, log in to the website and navigate to Server Management » Settings & Packages » Packages.
The available PHP versions are currently 7.4, 8.0, 8.1, and 8.2. However, it's important to note that some WordPress themes or plugins may not work with PHP 8.2, so it's advisable to check the PHP version in the Tools » Site Health section of WordPress. If the PHP version has been reset to 7.4, it is recommended to change it to PHP 8.1 or 8.2.
Similarly, to apply PHP 8.2 on Bluehost VPS, access WHM, search for EasyApache4, and click Customize under Currently Installed Packages to remove unnecessary PHP versions and add PHP 8.2.
After adding PHP 8.2, adjust PHP settings such as memory limit by searching for php in WHM and selecting MultiPHP INI Editor, and then choosing ea-php82 from the Configure basic settings of a PHP version dropdown.
It's worth noting that most popular WordPress themes and plugins are expected to work without issues on the latest PHP version. However, outdated plugins or themes may cause problems, so if any issues arise after applying PHP 8.2, it's recommended to revert to PHP 8.1 or lower. Additionally, after applying the new PHP version, it's important to check if the error_log file in the root folder is getting excessively large through FTP. If so, revert to the previous PHP version and delete the error_log file.
For shared hosting on Bluehost, PHP 8.1 is currently the highest version available, but PHP 8.2 may be added in the near future. For blog hosting, shared hosting can be a cost-effective option if using lightweight themes such as GeneratePress to ensure good speed.