coomand to know php version installed ubuntu code example Example 1: check the php version in ubuntu php --version Example 2: php check version ubuntu php -version