PHP - How to find out installed PHP version in Centos 8

  • Last updated: Oct 14, 2024
  • Views: 5
  • Author: Admin
PHP - How to find out installed PHP version in Centos 8

Hello colleagues.

In today's article, we will talk about how you can find out what version of PHP you have installed on the Linux operating system. There are times when you need to know which version is installed, for example, you want to migrate from an old version of PHP to a new one.

 

1. The first way is to run a very simple command in the terminal:

$. php -v

php check version

This command will display information about the currently installed version of PHP, and show which version is installed. In our case, this is 7.2.24


 

2. The second way is to run the command in the terminal:

$. php -i | grep "PHP Version"

php check version


 

Thank you all, I hope my article was of some help to you.

 

SIMILAR ARTICLES