list php version php 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