How to check php version in command line?
If you want to know the PHP version you are running through the command line, you need to just type in the command the following line. It will give you the current php version of your system which is currently using and output of PHP version like this (not exactly, depends on your version)