check php version ubuntu command line code example Example: check the php version in ubuntu php --version