Do you also get a crash from e.g. "php-8.0 -i"? If so, can you run that under gdb and try and get a backtrace?
pkg_add gdb egdb php-8.0 set args -i run bt
Do you also get a crash from e.g. "php-8.0 -i"? If so, can you run that under gdb and try and get a backtrace?
pkg_add gdb egdb php-8.0 set args -i run bt