code to validate php version