display php cli version code example Example: check php version linux terminal /* in terminal type it*/ php -v