After seing this post showing how another member used php:
I installed php on Monterey using Homebrew and tried a very simple macro:
However the behavior is not, at all, what is expected, see the results:
I have no clue what's going on because I know php is installed where the sheband says it's installed:
I must be doing something wrong.
Thanks a lot!