checking php version in command line code example Example: check php version /* in terminal type it*/ php -v