WordPress relies on PHP, the server-side programming language that runs its core software, themes and plugins. Knowing which PHP version your website uses helps you check compatibility, investigate errors and determine whether your hosting environment meets the requirements of your WordPress installation.
You can usually find the PHP version from your WordPress dashboard using Site Health. If you cannot access the dashboard, your hosting control panel or a server command may provide the same information.
Method 1: Check Your PHP Version in WordPress Site Health
The simplest method for most website owners is the built-in Site Health tool. It reports technical information about the server environment used by WordPress, including the PHP version.
- Sign in to your WordPress administration area.
- Navigate to Tools → Site Health.
- Select the Info tab.
- Expand the Server section.
- Find the entry labelled PHP version.
The value may look like 8.2.30 or 8.3.15, depending on the PHP release and maintenance updates installed on your server.
The number before the first decimal point identifies the major version family, while the following number identifies the minor release. The final component, when present, identifies a particular patch release.
For example, PHP 8.3.15 belongs to the PHP 8.3 release series. Patch releases can include security fixes and bug fixes, so the complete version number is useful when investigating compatibility issues.
What if Site Health shows a different PHP version than expected?
The version displayed by Site Health is the PHP version used for the WordPress request that generates that report. It is generally the relevant value for your website’s normal administration area.
However, some hosting environments use different PHP configurations for different domains, subdomains, command-line tasks or applications. If you manage several WordPress installations, check each site individually rather than assuming they all use the same version.
You can find more information about the report in the official WordPress Site Health documentation.
Method 2: Check PHP in Your Hosting Control Panel
If you cannot sign in to WordPress, check your hosting account. Many hosting providers display the PHP version in their control panel.
The exact menu names vary between providers and hosting packages, but the relevant setting is often found under a section such as PHP, PHP Configuration, MultiPHP Manager, Select PHP Version or Software.
- Sign in to your web hosting control panel.
- Open the PHP configuration or version-management section.
- Select the domain associated with your WordPress website, if required.
- Check the PHP version assigned to that domain.
Some control panels show a version selector rather than the version currently being used. If you are unsure whether the displayed version is active, confirm it with Site Health once you can access WordPress, or ask your hosting provider.
Important: Do not change the PHP version simply to check which one is installed. Changing it can affect compatibility with WordPress themes, plugins and custom code. If you are considering an upgrade, review compatibility first and make a backup.
- Compare PHP and resource options
- A dependable home for custom work
- Room to grow your projects
Method 3: Find Your PHP Version Using WP-CLI
If you have SSH access to your server and use WP-CLI, you can check the PHP version from the command line.
Open a terminal, connect to your server if necessary, and navigate to the WordPress installation directory. Run:
wp eval 'echo PHP_VERSION . PHP_EOL;'
This evaluates a small PHP expression within the WordPress environment and prints the PHP version used by that WP-CLI process.
Be aware that command-line PHP may differ from the PHP version used by your website. Hosting providers can configure separate PHP versions for web requests and command-line execution. If the command returns a different version from Site Health, use Site Health as the reference for the website’s web environment and ask your hosting provider to clarify the configuration.
You can also check which PHP executable your terminal finds by running:
php -v
This reports the version associated with the command-line php executable. It does not necessarily identify the version assigned to your website’s domain.
For more information about WP-CLI commands, consult the official WP-CLI documentation.
Method 4: Ask Your Hosting Provider
If you cannot access WordPress or your hosting control panel does not clearly identify the active PHP version, contact your hosting provider’s support team.
Ask them to confirm:
- The PHP version currently assigned to your WordPress website.
- Whether the website and command-line environment use different PHP versions.
- Which supported PHP versions are available for your hosting plan.
- Whether changing the version requires any additional configuration.
This is particularly useful for managed WordPress hosting, where the provider may control PHP configuration on your behalf.
Avoid uploading a public PHP information file just to check the version. Such files can expose server configuration details. If you have previously created one for troubleshooting, remove it when you have finished.
What to Do After Finding Your PHP Version
Finding the version is only the first step. You should also establish whether it remains supported and is appropriate for your WordPress installation.
1. Check whether the PHP version is supported
PHP receives updates throughout its support lifecycle. Once a release branch reaches the end of its support period, it no longer receives normal security fixes from the PHP project.
Check the official PHP supported versions page to see the support status of your version. Do not rely on the version number alone: two websites running different patch releases within the same branch may have different update requirements.
WordPress also assesses the PHP environment through Site Health. Review any notices in Tools → Site Health → Status, particularly warnings concerning outdated PHP or recommended updates. See the WordPress developer documentation on PHP version checks for further technical details.
2. Check WordPress, theme and plugin compatibility
Before changing PHP versions, check that your WordPress installation, active theme and plugins support the intended version.
Review relevant documentation and update notices. If you maintain custom PHP code, check it for compatibility issues as well. A version change can reveal errors in older code even if WordPress itself supports the newer release.
Do not assume that every plugin or theme is compatible merely because it is available in the WordPress Plugin Directory or Theme Directory.
3. Prepare before upgrading PHP
If your PHP version needs updating, use a controlled process:
- Back up your website. Include both the database and website files, and make sure you know how to restore them.
- Update WordPress, themes and plugins where appropriate, after considering their compatibility and your normal maintenance procedure.
- Test the new PHP version on a staging site if your hosting plan supports one.
- Change the PHP version through your hosting provider’s supported interface or ask the provider to do it.
- Check the website afterwards. Test the front end, WordPress dashboard, forms, checkout processes and other important functions.
- Review error logs if anything stops working, and restore the previous configuration if necessary while you investigate.
The correct PHP version depends on current WordPress requirements, software compatibility and the hosting environment. Choose a supported version that meets those requirements rather than selecting a version solely because it is the newest available.
Frequently Asked Questions
Is PHP the same as the WordPress version?
No. WordPress is the content management system, while PHP is the programming language used to run it on the server. They have separate version numbers and release cycles. You can check the WordPress version in the dashboard and the PHP version in Site Health.
Does updating WordPress automatically update PHP?
No. WordPress software updates and PHP updates are separate. Your hosting provider generally manages the PHP version, although the available controls depend on your hosting environment.
Can I find the PHP version without logging in to WordPress?
Yes. Check your hosting control panel, use an appropriate command-line method if you have server access, or ask your hosting provider. Remember that the command-line PHP version may differ from the version used by the website.
Should I upgrade PHP if WordPress recommends it?
Usually, you should investigate and plan an upgrade when Site Health identifies outdated PHP. First check the PHP branch’s support status and the compatibility of your themes, plugins and custom code. Back up the site and test the change before applying it to a live website where possible.
Why does my hosting panel show a different PHP version from WordPress?
The hosting panel may display a version available for selection rather than the version currently assigned to your domain. Alternatively, the command-line environment or a different domain may use a separate PHP configuration. Confirm which version is active for the website itself.
Summary
To find your WordPress PHP version, open Tools → Site Health → Info → Server and look for PHP version. If you cannot access WordPress, check your hosting control panel or contact your provider. Once you know the version, review its support status and plan any upgrade carefully, taking compatibility and backups into account.
- Compare PHP and resource options
- A dependable home for custom work
- Room to grow your projects