Objective
PHP is to quickly build a Web page and quickly be widely accepted open source language, through the continuous development of a lot of PHP open source system, to meet the current majority of users of the site requirements. In the early 1995, PHP was born to now have more than one version, and each version belongs to a series, most of the source of the site can not be compatible with each other, so can quickly switch PHP version is very practical.
Note: All PHP versions are required to be installed by brew
First, use Brew to install the PHP multi-version method
# Brew Install php56
# Brew Install Php70
Second, install the switch tool
# Brew Install php-version
# source $ (Brew--prefix php-version)/php-version.sh
Third, view all versions of the current installation
Four, switch version
Summarize
The above is the entire content of this article, I hope to learn or work for everyone to bring certain help and convenience, if you have questions you can message exchange. Thank you for your support to the cloud-dwelling community.