Dimofinf provides the ability to choose between many PHP versions, and also the ability to directly control the modules you want to enable or disable through cPanel.
1- Login to your Control Panel (cPanel).
2- Choose (Select PHP Version) from (Software/Services) block.
3- Select the required version from the drop-down list (PHP Version), then press the button (Set as current). You can also select the required modules.
4- To edit PHP options, press the button (Show PHP Options).