After all the years I've found out that one can use which php to get the path.
which php
php: aliased to /Applications/MAMP/bin/php/php8.0.8/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php8.0.8.ini"
After all the years I've found out that one can use which php to get the path.
which php
php: aliased to /Applications/MAMP/bin/php/php8.0.8/bin/php -c "/Library/Application Support/appsolute/MAMP PRO/conf/php8.0.8.ini"