As WordPress is a powerful application written by PHP, it can run well only with the proper versions of PHP. Moreover, knowing which version of PHP you’re running is important for ensuring your site is up-to-date and that any plugins or themes you want to use are compatible with your site.

The different versions of PHP have various settings and suit for different versions of plugins and software. In general, the advanced versions come with a series of new features, which gives the scripting power to serve for the newest technologies and satisfy the requirements of the latest software.

There are many ways you can check which release you’re running so this article is a simple guideline written for helping people check PHP version of WordPress server.

In fact, your site’s PHP version depends on your hosting. Most of the time, you can login to your hosting account and check the PHP version there. While your host may or may not display your site’s PHP version, you can always email them and ask. This may be the easiest way.

Check PHP Version With Code

PHP comes with an effective phpinfo() function that can tell you major information about the PHP settings, of course, including the PHP version. First you should go to create a text file and name it as phpinfo.php. Then, you need to copy and paste the below code into this document.

<?php phpinfo(); ?> 

The function instructs the PHP engine to tell you about itself.  By this way, you can get the detailed settings and information about the PHP version you are running.

Check PHP Version With Plugins

If you have little knowledge about PHP and programming skill, WordPress gives you the ability to check your PHP version with suitable plugins. So, firstly you need to install and activate the Display PHP Version plugin

That’s all, in your main Dashboard menu,where the At a Glance widget shows your WordPress version, the plugin adds a line with your site’s PHP version right below that.

The plugin works immediately upon activation and has no settings to configure. You can safely deactivate and delete this plugin once you know the PHP version.

We hope this article was helpful 😉