This guide will help you install multiple versions of PHP on your macOS system using Homebrew. You can switch between these versions easily when needed. Additionally, we will set up aliases for convenient version switching.
To install multiple PHP versions, open your terminal and run the following commands:
brew install shivammathur/php/php@5.6