Skip to content

Instantly share code, notes, and snippets.

View flocondetoile's full-sized avatar

Flocon de toile flocondetoile

View GitHub Profile
@flocondetoile
flocondetoile / readme.md
Created March 31, 2026 20:45 — forked from Eseperio/readme.md
Multiple PHP versions at same time on MacOS in 2022 and using Apache

Using Multiple PHP Versions Simultaneously in 2025 on macOS with Apache

This guide explains how to install and run several PHP versions at the same time on macOS, using Apache. Each PHP version is assigned to a specific directory, so you can easily switch PHP versions for any project simply by moving it to the relevant folder. This method allows instant version changes without having to update your server configuration every time.

1. Installing Multiple PHP Versions

To install different PHP versions, use Homebrew:

  1. Add the required tap: