Linux Capable published a tutorial about installing PHP 8.2 on Ubuntu 22.04/20.04.
How to Install PHP 8.2 on Ubuntu 22.04/20.04
Commands to install PHP 8.2 on Ubuntu 22.04 Jammy Jellyfish or 22.04 Focal Fossa LTS using a LaunchPAD PPA for the latest versions.
How to Install PHP 8.2 on Ubuntu 22.04/20.04 - LinuxCapable