« Using the bundled PHP
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.