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
Log in to your cPanel account.
Locate the Software section.
Select Select PHP Version or MultiPHP Manager.
The current version for your specific domain or account will be displayed in the list.
In Windows Control Panel (WCP)
Log you into the Windows Control Panel.
Select your website from the list.
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.
Create a new text file on your computer and name it
info.php.Open the file in a text editor and paste the following code:
<?php phpinfo(); ?>
Upload
info.phpto the root directory of your website (e.g.,public_htmlorwww).Open your web browser and navigate to the file's URL (e.g.,
http://example.com/info.php).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.
