intanto hai invertito i parametri, questa è la sintassi:
$testo = preg_replace($urlfound, $urlmod, $testo);