mod: use version_compare() instead of PHP_VERSION_ID
     The constant is only available since v5.2.7