Lists down all installed php versions sudo update-alternatives --list php
php --version
/* in terminal type it*/ php -v
php -version