Title: WordPress 6.5 PHP Compatibility
Author: Javier Casares
Published: 2024-04-05
Last modified: 2024-07-10

---

 [  ](https://profiles.wordpress.org/javiercasares/) [Javier Casares](https://profiles.wordpress.org/javiercasares/)
16:34 _on_ 2024-04-05     
Tags: [Core ( 20 )](https://make.wordpress.org/hosting/tag/core/),
[PHP ( 17 )](https://make.wordpress.org/hosting/tag/php/)   

# WordPress 6.5 PHP Compatibility

As we[ explained in the previous post](https://make.wordpress.org/hosting/2023/11/16/wordpress-6-4-php-compatibility/),
for each new version of WordPress, we aim to release an article explaining the compatibility
of PHPPHP PHP (PHP: Hypertext Preprocessor) is a general-purpose scripting language
especially suited to web development. PHP code is usually processed on a web server
by a PHP interpreter. On a web server, the result of the interpreted and executed
PHP code would form the whole or part of an HTTP response. with the WordPress versions
and our team’s recommendation for that specific version.

On this occasion, once again, we will explain the details of compatibility, including“
betaBeta Beta is the software development phase following alpha. A Beta phase generally
begins when the software is feature complete but likely to contain a number of known
or unknown bugs. Software in the beta phase will generally have many more bugs in
it than completed software, speed or performance issues, and may still cause crashes
or data loss. The focus of beta testing is reducing impacts to users, often incorporating
usability testing. compatible” or “compatible with exceptions”.

So, here you have the compatibility information, this time, for WordPress 6.5.

## **WordPress’ serverServer A server is a piece of computer hardware or software that provides functionality for other programs or devices. Typical servers are database servers, file servers, mail servers, print servers, web servers, game servers, and application servers. requirements**

Even if there are more stable software versions, that doesn’t mean they are the 
ones WordPress recommends.

This makes WordPress 6.5 requirements:

 * PHP: 7.0+
 * MySQLMySQL MySQL is an open-source relational database management system (RDBMS).
   MySQL is free and open-source software under the terms of the GNU General Public
   License.: 5.5.5+
 * MariaDBMariaDB MariaDB is a fork of the MySQL relational database management 
   system (RDBMS), intended to remain free and open-source software under the GNU
   General Public License. MariaDB intended to maintain high compatibility with 
   MySQL, ensuring a drop-in replacement capability with library binary parity and
   exact matching with MySQL APIs and commands.: 5.5.5+

You can read more at[ Server requirements](https://make.wordpress.org/hosting/handbook/compatibility/#wordpress-php-mysql-mariadb-versions).

## **WordPress’ compatibility “at the time”**

WordPress 6.5 was released on April 2, 2024, and at that time we had the following
components available (stable or security-maintained versions only, and RCRelease
Candidate A beta version of software with the potential to be a final product, which
is ready to release unless significant bugs emerge. only for informational purposes).

 * PHP: 8.1, 8.2, and 8.3
 * MySQL: 8.0 (LTS), 8.2, and 8.3.
 * MariaDB: 10.4 (LTS), 10.5 (LTS), 10.6 (LTS), 10.11 (LTS), 11.0, 11.1, 11.2, and
   11.3

You can read more at[ WordPress Compatibility](https://make.wordpress.org/hosting/handbook/compatibility/#wordpress-php-mysql-mariadb-versions).

## **WordPress and PHP**

PHP is a programming language on which WordPress code is based. This language runs
on the server, and it is critical to keep it up to date, both for security and functionality.

WordPress supports many versions of PHP, some even obsolete ([PHP Compatibility and WordPress Versions](https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/)).

_WordPress 6.5 (coreCore Core is the set of software required to run WordPress. 
The Core Team builds WordPress.) is:_

 * **fully compatible** with PHP 7.0^(1), 7.1^(1), 7.2^(1), 7.3^(1), and 7.4^(1).
 * **compatible with exceptions** with PHP 8.0^(1), 8.1, and 8.2.
 * **beta compatible** with 8.3.

_^(1)__ SECURITY ALERT: These versions are not officially maintained by PHP, so 
they are considered insecure and obsolete versions and should not be used in production.
Check with your hostingHosting A web hosting service is a type of Internet hosting
service that allows individuals and organizations to make their website accessible
via the World Wide Web. provider about the security maintenance they can do._

### **What “compatible with exceptions” mean?**

**PHP 8.0**

 * _Named parameters. WordPress does not support named parameters.__PHP 8.0 supports
   optionally calling functions and class methods by specifying the parameter name,
   instead of calling them on the order of parameters that they are declared.
   PHP,
   and many other programming languages, support positional parameters: The caller
   passes the parameters in the same order the function/method declares its parameters.
 * [_Filesystem WP\_Filesystem\_FTPext and WP\_Filesystem\_SSH2 when connect fails_](https://core.trac.wordpress.org/ticket/48689)_.
   __An investigation is underway as to why on some occasions the access to the 
   files returns some type of error.

**PHP 8.1**

 * _Not all “passing null to non-nullable” issues have been found.__In PHP, you 
   can tell a function exactly what type of information it should accept. If you
   tell a function to expect a certain type of information, and you give it nothing
   at all (null is like saying “nothing”), then PHP gets confused and gives an error.
   This problem happens when someone accidentally gives a function “nothing” when
   the function wasn’t designed to handle “nothing”.
 * [_htmlentities() et al needs the default value of the flags parameter explicitly set_](https://core.trac.wordpress.org/ticket/53465)_.
   __According to[ htmlentities()](https://www.php.net/manual/en/function.htmlentities.php),
   the default for flags for PHP 8.1 was “changed from ENT_COMPAT to ENT_QUOTES 
   | ENT_SUBSTITUTE | ENT_HTML401”. All use cases for this functionality in WordPress
   Core are being investigated.
 * [_Replace most strip\_tags() with wp\_strip\_tags()_](https://core.trac.wordpress.org/ticket/57579)_.
   __There are rare occasions when the strip_tags() function is passed a null value,
   which generates a warning that the string is deprecated.

**PHP 8.2**

 * [utf8_{encode|decode} deprecation](https://core.trac.wordpress.org/ticket/55603)
   with pending decision on requiring a PHP extension.
 * [Unknown dynamic properties’](https://core.trac.wordpress.org/ticket/56034) deprecation.

### **What “beta” mean?**

**PHP 8.3**

 * _Deprecation notices__A deprecation notice is not an error, but rather an indicator
   of where additional work is needed for compatibility before PHP 9.0. With a deprecation
   notice, the PHP code will continue to work and nothing is broken.

## **Hosting Team Recommendation**

Taking all this into account, the **Hosting Team’s recommendations for WordPress
6.5** are as follows (which[ may differ from the global ones](https://wordpress.org/about/requirements/)).

 * PHP: 8.2.x
 * MySQL: 8.0.x
 * MariaDB: 10.11.x

_IMPORTANT: These recommendations are intended, primarily, for new installations
by hosting providers._

Props: [@luciaalcantara](https://profiles.wordpress.org/luciaalcantara/)

 [#core](https://make.wordpress.org/hosting/tag/core/), [#php](https://make.wordpress.org/hosting/tag/php/)

### Share this:

 * [  Threads ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=bluesky)
 * [  Tumblr ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=tumblr)
 * [  Facebook ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=facebook)
 * [  X ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=x)
 * [  LinkedIn ](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?share=linkedin)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fhosting%2F2024%2F04%2F05%2Fwordpress-6-5-php-compatibility%2F%23respond&locale=en_US)

### Like this:

Like Loading…

 1. Pingback: [WordPress 6.6 Server Compatibility – Make WordPress Hosting](https://make.wordpress.org/hosting/2024/07/10/wordpress-6-6-server-compatibility/)

### Leave a Reply 󠀁[Cancel reply](https://make.wordpress.org/hosting/2024/04/05/wordpress-6-5-php-compatibility/?output_format=md#respond)󠁿

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fhosting%2F2024%2F04%2F05%2Fwordpress-6-5-php-compatibility%2F&locale=en_US)
to post a comment.

This site uses Akismet to reduce spam. [Learn how your comment data is processed.](https://akismet.com/privacy/)

# Post navigation

[← Hosting Team meeting agenda 2024-04-03](https://make.wordpress.org/hosting/2024/04/03/hosting-team-meeting-agenda-2024-03-06-2/)

[WordCamp Europe 2024 Contributor Day →](https://make.wordpress.org/hosting/2024/05/01/wordcamp-europe-2024-contributor-day/)