change of version checks to use PHP_VERSION_ID constant.
Correction for inverted version checks
Merge pull request #4980 from BinaryKitten/version_check_update

change of version checks to use PHP_VERSION_ID constant.
Merge branch 'feature/4980' into develop

Close #4980