PHP Compatibility Index

WordPress and PHP 8.5: what changes for plugins

PHP 8.5 was released in November 2025. It removes nothing that working plugins rely on, but it deprecates several old functions and spellings. We scanned 3,044 plugins to see how many are affected.

The numbers

What triggers the PHP 8.5 notices

DeprecatedPluginsFix
curl_close()232Has done nothing since PHP 8.0; the call can simply be deleted.
imagedestroy()107Has done nothing since PHP 8.0; the call can simply be deleted.
finfo_close()29Has done nothing since PHP 8.1; the call can simply be deleted.
xml_parser_free()56Has done nothing since PHP 8.0; the call can simply be deleted.
(boolean) cast38Write (bool) instead.
(double) cast30Write (float) instead.
(integer) cast13Write (int) instead.
socket_set_timeout()14Use stream_set_timeout().
Backtick operator `…`12Runs a shell command; use shell_exec() instead.
MHASH_* constants8Part of the old mhash API; use hash().
(binary) cast1Write (string) instead.

Counts are plugins with at least one occurrence. The fixes are one-line changes for plugin authors.

Check your site, including premium and custom plugins and your theme, with the free PHP Upgrade Check plugin. It runs inside WordPress and works on any host.

Should you move to PHP 8.5 now?

For most sites PHP 8.4 is the safer target today: it is supported until the end of 2028 and fewer plugins log notices on it (8.4 results). Move to 8.5 once your plugins have caught up, after testing on a staging copy.

More guides