Use PHP_VERSION_ID instead of version_compare().
Merge pull request #164 from Hywan/phpversion

Use PHP_VERSION_ID instead of version_compare(), thanks to @Hywan for its help.