Plesk allows for multiple PHP-FPM installations (7.3, 8, 8.3) to run multiple instances of PHP on a single server, with each site using a different version of PHP as needed.
So, I upgrade as needed for some sites, and even downgrade to 7.3 for other sites.
XF 2.3 will run well on PHP 8+, but...