How to quickly switch multiple PHP versions under Mac _php tips

Source: Internet
Author: User
Tags install php

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

# php-version

Four, switch version

# php-version 5.6.5

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.