You can use multiple PHP versions with one Apache server. Easily install them via the Apt package manager by the famous PPA from Ondrej. Then you can install multiple PHP versions like so:
sudo apt install php7.1 php5.6 php7.0
For being able to switch the PHP versions within the Apache webserver, you need the Lib Apache packages. You can install them like so: