You can check the version by running a simple PHP file on your webs server. You can also check what version is installed on your local computer using the Command Prompt or Terminal. Open a text or code editor. You can use Notepad or TextEdit. Don’t use a word processor such as Microsoft Word. Enter the following code.
For More Information Please Refer: