I use the following command to view installed PHP versions in Ubuntu: ======================================================================== sudo update-alternatives --list php
sudo update-alternatives --list php