You can check the PHP configuration on server using below mentioned steps:
Step 1: Open a text editor like notepad
Step 2: Enter the below mentioned code.
Step 3: Save the file name as info.php
Step 4: Upload this file in your cPanel in the web root directory(public_html).
Step 5: Now check this using the link: http://yourdomain.com/info.php
Now you can see the PHP configuration and all its environment variables set of your hosting account.