According to the arm64 newrelic php page there
is arm64 support for the php agent, if it is running Amazon Linux or CentOS Linux8, but not for Apple or M1.
However, when I pulled the latest tar.gz (v10.4.0.316 as of 2023/01/13) at https://github.com/newrelic/newrelic-php-agent/archive/refs/tags/v10.4.0.316.tar.gz
and tried to compile - it did nearly work.
The first tries of make agent, will fail with missing pcre_compile or aclocal or glibtoolize. This can be fixed by
installing brew install pcre for pcre_compile, brew install automake for aclocal and brew install libtool for glibtoolize.
Then finally running make agent ends up in:
util_hash.c:198:5: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
case 2:
^
util_hash.c:198:5: note: insert '__attribute__((fallthrough));' to silence this warning
case 2:
^
__attribute__((fallthrough));
util_hash.c:198:5: note: insert 'break;' to avoid fall-through
case 2:
^
break;