multiple php versions on mac code example
Example 1: mac install multiple php versions
# Switch from 7.4 to 5.6
brew unlink php@7.4
brew link php@5.6 --force
Example 2: mac install multiple php versions
brew install php@5.6
brew install php@7.0
brew install php@7.1
brew install php@7.2
brew install php@7.3
brew install php@7.4