I just upgraded to PHP 8.1 and everything is working fine.
I added this to .htaccess:
.htaccess
AddHandler application/x-httpd-alt-php81___lsphp .php