PHP - How to find out installed PHP version in Centos 8
- Last updated: Nov 3, 2023
- Views: 178
- Author: Admin

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
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"
Thank you all, I hope my article was of some help to you.