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