Ubuntu: Find out all PHP versions with installation directory
To find all installed PHP versions on the terminal under Ubuntu Linux, you can simply execute the following command: In addition to the PHP version, the respective installation directory is also output.