Firstly brew search php
if you can find the corresponding version of php, eg see:
that the current can be installed php version only php [email protected] [email protected]
That is not php7.1 version I want to install or older php version.
Command brew tap exolnet/homebrew-deprecated
can be old or have been abandoned php version back.
After installing the continued use of brew search php
found older versions of php back
through the brew install exolnet/deprecated/[email protected]
install php version corresponding to