There are a few ways to check the PHP version of your WordPress website without using a plugin:
- Using the WordPress dashboard:
- Login to your WordPress dashboard
- Go to “Tools” > “Site Health”
- Scroll down to the “Info” tab
- Look for the “Server” section which displays the PHP version
- Using a code snippet:
- Create a new file named “phpinfo.php” and add the following code:
php
phpinfo();
- Upload the file to the root directory of your WordPress installation using FTP or a file manager in cPanel
- Access the file via your web browser (e.g. yourdomain.com/phpinfo.php)
- Look for the “PHP Version” section
- Using the command line:
- Connect to your website’s server via SSH or a terminal
- Run the following command:
php -v
- The output should display the PHP version installed on the server.
Note: It’s important to keep your PHP version up-to-date for security and performance reasons.