Use PHP_VERSION_ID when checking for PHP version signature

PHP_API_VERSION is in a date format.