Does Ubuntu update the system PHP version

If you install a newer version of PHP on Ubuntu, then it will become the default version for the command line.

Looks like it might be a thing.

Also

php8.3-cli installs the PHP CLI, and symlinks /usr/bin/php to /usr/bin/php8.3.