Linux – Checking what PHP version I’m running on Linux


I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?

Best Answer

Try running the following at the command line.

To just get the version information:

php -v

Or to get a lot of info:

php -i

It should give you all information you need about the php install.