Installing PHP5.6 and PHP7

how to have PHP7 and PHP5.6 installed under Apache

Install:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install libapache2-mod-php5.6

Switching:
sudo a2dismod php7.0
sudo a2enmod php5.6
sudo service apache2 restart

OR
sudo a2dismod php5.6
sudo a2enmod php7.0
sudo service apache2 restart