better version checking on php