Skip to main content

How to Check Which PHP Version a Website Uses

You can identify the current PHP version powering your website to ensure compatibility with your applications and plugins. This information is available through your hosting control panel or by using a PHP information script.

Before you begin

You will need:

  • Access to your hosting control panel (such as cPanel or Windows Control Panel)

  • Access to your website's file manager or an FTP client

Check via your hosting control panel

The most direct way to see your assigned PHP version is through your account's management interface.

In cPanel

  1. Log in to your cPanel account.

  2. Locate the Software section.

  3. Select Select PHP Version or MultiPHP Manager.

  4. The current version for your specific domain or account will be displayed in the list.

In Windows Control Panel (WCP)

  1. Log you into the Windows Control Panel.

  2. Select your website from the list.

  3. Look for the PHP Version indicator in the site's summary information or under the Advanced settings.

Check via a PHP information script

If you need to verify the exact version being executed by the web server for a specific URL, you can use a PHP info file.

  1. Create a new text file on your computer and name it info.php.

  2. Open the file in a text editor and paste the following code:

    <?php
    phpinfo();
    ?>

  3. Upload info.php to the root directory of your website (e.g., public_html or www).

  4. Open your web browser and navigate to the file's URL (e.g., http://example.com/info.php).

  5. The page will display a table of information; the PHP Version will be listed at the top.

Warning: The phpinfo() function reveals detailed information about your server configuration. Remove the info.php file from your server immediately after checking the version to prevent unauthorized access to your server details.

Confirm the result

  • The version number (e.g., 7.4, 8.1, or 8.2) is displayed in your control panel or on the info page.

  • You can successfully identify the version to determine if your website meets the requirements of your software.

Limitations

This process confirms the version currently active on the server. It does not indicate whether the version is the most recent available or if it is the optimal version for your specific website's performance.

Did this answer your question?