preg_match('#(phoenix|firebird|firefox)( browser)?/([0-9\.]+)#', $useragent, $regs);
$regs[3] = (version_compare('0.10', $regs[3]) <= 0 ? '1.0' : $regs[3]);