get PHP version from Linux command line
to know your running PHP version from command line in Linux you have to use the command php -i while this gives a lot of information , so you will need to use it with grep command to focus on PHP Version php -i | grep “PHP Version”