added PHP_VERSION compatibility