How to install PHP
1. Add ondrej/php repository
  1. sudo add-apt-repository ppa:ondrej/php
  2. sudo apt update
2. 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}
3. Verify the PHP 8.3 installation
  1. php -v
PHP 8.3.4 (cli) (built: Mar 16 2024 08:39:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.4, Copyright (c), by Zend Technologies