use the in-built version_compare functionality to check php version is valid.