Home > php教程 > PHP开发 > body text

How to quickly switch between multiple php versions on mac

高洛峰
Release: 2016-12-20 16:14:56
Original
1496 people have browsed it

Foreword

php is an open source language that is quickly widely accepted for quickly building a web page. Through continuous development, there are many php open source systems that meet the site needs of most current users. Since PHP was born in early 1995, there have been multiple versions, and each version belongs to a series. Most website source codes are not compatible with each other, so it is very practical to be able to quickly switch PHP versions.

Note: All php versions are required to be installed by brew

1. Use brew to install php multi-version method

# brew install php56
# brew install php70
Copy after login

2. Install the switching tool

# brew install php-version
# source $(brew --prefix php-version)/php-version.sh
Copy after login

3. View all currently installed Version

# php-version
Copy after login

4. Switch version

# php-version 5.6.5
Copy after login

Summary

The above is the entire content of this article. I hope it can bring some help and convenience to everyone's study or work. If so, If you have any questions, you can leave a message to communicate. Thank you for your support to the PHP Chinese website.

For more related articles on how to quickly switch between multiple PHP versions under Mac, please pay attention to the PHP Chinese website!

Related labels:
mac
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!