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
2. Install the switching tool
# brew install php-version # source $(brew --prefix php-version)/php-version.sh
3. View all currently installed Version
# php-version
4. Switch version
# php-version 5.6.5
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

WebStorm Mac version
Useful JavaScript development tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1
Powerful PHP integrated development environment
