« Using the bundled PHP prior to macOS Monterey
Installation on Windows systems »
PHP Manual
Installation on macOS
Compiling PHP on macOS
Compiling PHP on macOS
Use the
Unix installation guide
to compile PHP on macOS.