To install PHP 8.3 on Debian 13. Follow the steps below.
Step 1 : Start by updating your package list and upgrading existing packages.

Step 2 : Install the packages required to securely add external repositories.

Step 3 : Add the official GPG key to verify packages from the SURY PHP repository.

Step 4 : Add the SURY repository to your system.

Step 5 : Update APT after adding the new repository.

Step 6 : Install PHP 8.3 and its core components.

Step 7 : Install popular PHP extensions used by most web applications.

- mysql: Enables MySQL/MariaDB database support
- curl: Allows HTTP requests to external services and APIs
- xsl: Processes XML using XSLT
- gd: Provides basic image processing capabilities
- common: Contains common PHP files
- xml: Enables XML parsing and manipulation
- zip: Allows creating and extracting ZIP archives
- soap: Supports SOAP-based web services
- bcmath: Handles arbitrary precision mathematics
- mbstring: Supports multibyte string handling (UTF-8)
- gettext: Enables localization and translation
- imagick: Advanced image processing using ImageMagick
Step 8 : Verify that PHP 8.3 is installed correctly.

You should see output showing PHP 8.3.x.
Congratulations! You have successfully installed PHP 8.3 on Debian 13.