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