Last updated December 5th, 2023 23:08
In recent days, you’ve likely noticed the release of a new WordPress version labeled 6.4, codenamed Shirley. Roughly 24 hours later, WordPress 6.4.1 was released, addressing a critical cURL bug. As WordPress development advances, this new version has slightly different server requirements compared to the original 6.3. So, which version of PHP is best for WordPress 6.4? Let’s explore that in this article.
Which version of PHP is best for WordPress 6.4?
Bid farewell to older PHP versions like 7.4.
Many web hosts and servers today still run outdated PHP 7 versions, such as 7.2 or 7.4. If your WordPress is using these versions, it’s time to contact your hosting provider for an upgrade.
The new WordPress version is fully compatible with these PHP versions:
- PHP 8.1
- PHP 8.2
- PHP 8.3, currently in beta, is also compatible.
For PHP 8.1 and 8.2, there are additional details and exceptions outlined here: Server Environment
- PHP 8.0
- Named parameters. WordPress does not support named parameters.
- Filesystem WP_Filesystem_FTPext and WP_Filesystem_SSH2 when connect fails.
- PHP 8.1
- Not all “passing null to non-nullable” issues have been found.
- htmlentities() et al needs the default value of the flags parameter explicitly set.
- Replace most strip_tags() with wp_strip_tags().
- PHP 8.2
- utf8_{encode|decode} deprecation with pending decision on requiring a PHP extension.
- Unknown dynamic properties deprecations.
How do I check the current PHP version used by my hosting?
WordPress itself can easily reveal the PHP version. Log in to the administration panel and follow these steps:
- Click on ‘Tools‘ in the left-hand menu.
- A submenu will appear, choose ‘Site Health‘.
- Go to the ‘Info’ tab.
- Select the ‘Server‘ card from the menu.
The website is created with care for the included information. I strive to provide high-quality and useful content that helps or inspires others. If you are satisfied with my work and would like to support me, you can do so through simple options.
Byl pro Vás tento článek užitečný?
Klikni na počet hvězd pro hlasování.
Průměrné hodnocení. 0 / 5. Počet hlasování: 0
Zatím nehodnoceno! Buďte první
Je mi líto, že pro Vás nebyl článek užitečný.
Jak mohu vylepšit článek?
Řekněte mi, jak jej mohu zlepšit.
![newsletter - Jiří Vaněk - Jiří Vaněk newsletter](https://blog.jirivanek.eu/wp-content/uploads/2024/01/newsletter-300x213.webp)
Subscribe to the Newsletter
Stay informed! Join our newsletter subscription and be the first to receive the latest information directly to your email inbox. Follow updates, exclusive events, and inspiring content, all delivered straight to your email.