You could try reading the link that @chorn sent you, that has samples of how to define a constant
But what value will you give it? I would suggest you set it to zero so it doesn’t upset anything, and make sure your definition is somewhere you can easily find when you upgrade to a newer version. If you’re not intending to upgrade for some reason, then leave it out as it’s not going to do anything.
As long as you keep messing with obsolete PHP versions that are hundreds and hundreds of releases behind you are just going to keep having problems you shouldn’t be having.
if (!defined('ENT_SUBSTITUTE')) {
define('ENT_SUBSTITUTE',0); // Real value is 8 but use 0 to be safe
}
echo 'ENT_SUBSTITUTE ' . ENT_SUBSTITUTE . "\n";