list all the installed PHP versions code example
Example: get the list of php versions installed
I use the following command to view installed PHP versions in Ubuntu:
========================================================================
sudo update-alternatives --list php