1. Log into your cpanel account.
2. In the "Software" section,. "MultiPHP Manager" Icon.
3. Scroll down to the end of page, select your domain from the left side and you will see the option "PHP Version" with a drop-down list on the right side. Select the appropriate PHP version from the drop-down . and then click on Apply.
. Now that you want to set PHP 5.6 on Example2, scroll down and select the example2 domain. Then set the PHP version to 5.6.
Congratulations, both of your domains use different different PHP versions now.