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