How can I change php-cli version on Ubuntu 14.04?
Here is more interactive way:
update-alternatives --config php
You'll see the list of all available versions and select one of them
sudo update-alternatives --set php /usr/bin/php5.6
Please see: Source