Use PHP_VERSION constant instead of phpversion() function call