Through CloudLinux we provide patched versions of historic PHP versions, and also the latest stable versions. This means you can run everything from PHP 5.2 to PHP 8.
To change the PHP version on your account, log-in to cPanel and click 'PHP versions' from there, you can select an available version from the drop down list.