Configure options from ./configure --help
is attached, for more information please visit https://www.php.net/manual/en/configure.about.php
Download php source code from https://www.php.net/downloads.php At the time I used PHP 7.3.8 on macOS Mojave 10.14.5:
php-7.3.8.tar.gz (sig) [19,101Kb] 01 Aug 2019
31af3eff3337fb70733c9b02a3444c3dae662ecab20aeec7fdc3c42e22071490