Bence farkı şu, strtr bulduğu ilk matchin yerini değiştirir ve durur, str_replace string sona erene kadar bütün matchleri değiştirir.