Install the → php-updater script ← . That will give you full control over php. It gives you the means to install all supported php versions (8.3 8.2 8.1 8.0 7.4 7.3 7.2 7.1 7.0 5.6) on your new server and switch between them…
Much and good luck,
ernolf