Use version_compare()

Check for valid PHP version with version_compare() when running unit
tests.