If you are on a WordPress host that uses cPanel, you can switch between PHP versions by clicking on “PHP Select” under the software category.