Can you optimize this code to make it faster?
if (strpos($qt, "blood") !== FALSE){
if (preg_match("/^blood (?<blood>.+)$/", $qt, $match)){
switch ($match['blood']) {
case "a+":
$result = "A+";
$sndline = "Ideal donor: A+<br>Other donors: A+ or O+<br>Only if no Rh(+) found: A- or O-";
break;
case "a-":
$result = "A-";
$sndline = "Ideal donor: A-<br>Other donors: A- or O-";
break;
case "b+":
$result = "B+";
$sndline = "Ideal donor: B+<br>Other donors: B+ or O+<br>Only if no Rh(+) found: B- or O-";
break;
case "b-":
$result = "B-";
$sndline = "Ideal donor: B-<br>Other donors: B- or O-";
break;
case "ab+":
$result = "AB+";
$sndline = "Ideal donor: AB+<br>Other donors: AB+ or A+ or B+ or O+<br>Only if no Rh(+) found: AB- or A- or B- or O-";
break;
case "ab-":
$result = "AB-";
$sndline = "Ideal donor: AB-<br>Other donors: AB- or A- or B- or O-";
break;
case "o-":
$result = "O-";
$sndline = "Ideal donor: O-<br>Other donors: O-";
break;
case "o+":
$result = "O+";
$sndline = "Ideal donor: O+<br>Other donors: O+<br>Only if no Rh(+) found: O-";
break;
}
}
}