PHP is the server-side programming language used by WordPress and many other websites. Updating WordPress is different from updating the PHP runtime.
Use a supported PHP version
Unsupported release branches no longer receive security fixes from the PHP project. Also keep security updates within your chosen branch current. Your host may apply additional security patches; ask about the status if needed.
Which PHP version is the latest?
Checked on 7 November 2026: PHP 8.5 is the latest stable branch on the official supported versions list. Beta and release-candidate versions are for testing. Recheck the list before a future upgrade.
Check compatibility before switching
Check your CMS, themes, plugins and custom code. Review the migration guide, make a recoverable backup and test a private copy first. A working homepage does not prove that forms, checkout and background tasks work.
In WordPress, find the active version under Tools → Site Health → Info → Server. The version for command-line tasks can differ.
Continue with changing PHP in cPanel and the post-update checklist.
