Change the version of PHP via your ISP's control panel
Assuming that your web hosting package comes with access to a
web interface it may well give you the ability to define which version of PHP you want to run.
Below are links to articles on how to do this with some of the most common control panels used today:
Article last updated: 11th October, 2020