How-to's How to install PHP
1. Add ondrej/php repository
  1. sudo add-apt-repository ppa:ondrej/php
2. Update and upgrade the packages
  1. sudo apt update && sudo apt upgrade
3. Install the PHP 8.3 packages
  1. sudo apt install php8.3-common php8.3-cli php8.3-fpm php8.3-{curl,bz2,mbstring,intl}
4. Verify the PHP 8.3 installation
  1. php -v
PHP 8.3.9 (cli) (built: Jul  5 2024 12:03:23) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.9, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.9, Copyright (c), by Zend Technologies