Hello,
Thank you for the nice script! I know few solutions of multi-php for vesta & myvesta, this is probably the easiest. But there is one funny thing.
PHP 8.2 is installed regardless of the choice. Even when I've removed all 8.0 8.1 and 8.2 code lines from this script it was installed along with required 7.0 and 7.4.
I have websites that require PHP 7.0 to work, I have old CMS that require 5.6, I have modern websites tested at 7.2 - 7.4 so the aim is the minimization of RAM consumption e.g. avoid running/installing unnecessary PHP FPM version.
Also, there is one more point that nobody exactly noticed. Sury physically removed all Debian 9 and 8 packages, so every script based on this repository became broken (please check). If so, the community will appreciate any appropriate replacement of sury repository for this OS.