Instead of this, I prefer PHP_VERSION comparisons - it makes it much more obvious for which PHP versions that code is.