ascolta guarda che ti stai sbagliando puoi leggere nel manuale:

If search and replace are arrays, then str_replace() takes a value from each array and uses them to do search and replace on subject