PHP error- Code will not be executed, code will be shown empty

If within PHP you do not see the execution of your code or you literally see the bare code on your page then your code is not executed on the server.
When you view the source in your browser of choice you will probably see the complete PHP file in the source code. Since PHP needs to be inside the tags your browser may also interpret this as HTML.
To figure out where this is going wrong you can go through the following steps:

- Are you using short tags of PHP? The following characters are not supported by MijnHostingPartner.nl: The full tags should be used: -
Check your file name, does the file extension end in .php? If not, the code is not interpreted as PHP code.
- Within the control panel under websites - > extenstions you can check the PHP version. The latest PHP version is currently PHP 7.