how show your version of php use code example Example 1: php get version echo PHP_VERSION; Example 2: check php version /* in terminal type it*/ php -v