From manual page: https://php.net/
The page "Installation on Unix systems" has a link "Installing from source on Unix and macOS systems" which has a link to"Installing from source on Unix and macOS systems".
But this page is a list of packages required to install PHP, not a list of instructions, and there ought to be a list of command-line commands to actually install PHP if the page title is going to be "Installation on Unix systems".
For instance:
>./configure --with-iconv=$(brew --prefix libiconv)
>make
>make install
>make test