I am new to using Linux and I broke some php settings while tampering.
If I execute a php script containing: phpinfo(); it shows the php versions as 5.
phpinfo();
sudo update-alternatives --set php /usr/bin/php5.6
Please see: Source