Using this script you can switch the PHP version
sh switch.sh
The motive is to switch between php version easily. If you have any contributions on how to expand this package, don't hesitate to fork and make pull requests.
I'm no expert and I strongly sense that there are many ways to improve the existing ideas. Any open issues can be discussed and solved together! :)
Switch PHP Version is released under the MIT License.