use PHP_VERSION_ID instead of phpversion