synth-ruiner I'd recommend setting up a virtual machine of a server-oriented distro, and installing PHP 8.1 on that. I'm going to set up Alpine 3.16 soon, since it was just released with 8.1 support...
kaktuspalme PHP is used for arc on Solus and I don't know if it's compatible with PHP 8. Besides virtual machine, docker/podman is what I would recommend for PHP development. This one is also a very handy alternative: https://github.com/phpenv/phpenv