ubuntu version on terminal for php code example Example: check the php version in ubuntu php --version