Does WordPress have a built in reference to the PHP version its running under? [closed]

function is_php4(){
  return version_compare(phpversion(),'5','<');
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)