<?php
$string = 'The quick brown fox jumped over the lazy dog.';
$patterns[0] = '/quick/';
$patterns[1] = '/brown/';
$patterns[2] = '/fox/';
$replacements[2] = 'bear';
$replacements[1] = 'black';
$replacements[0] = 'slow';
echo $replacements[0];
echo $replacements[1];
echo $replacements[2]
?>
PD9waHAKJHN0cmluZyA9ICdUaGUgcXVpY2sgYnJvd24gZm94IGp1bXBlZCBvdmVyIHRoZSBsYXp5IGRvZy4nOwokcGF0dGVybnMgPSBhcnJheSgpOwokcGF0dGVybnNbMF0gPSAnL3F1aWNrLyc7CiRwYXR0ZXJuc1sxXSA9ICcvYnJvd24vJzsKJHBhdHRlcm5zWzJdID0gJy9mb3gvJzsKJHJlcGxhY2VtZW50cyA9IGFycmF5KCk7CiRyZXBsYWNlbWVudHNbMl0gPSAnYmVhcic7CiRyZXBsYWNlbWVudHNbMV0gPSAnYmxhY2snOwokcmVwbGFjZW1lbnRzWzBdID0gJ3Nsb3cnOwplY2hvICRyZXBsYWNlbWVudHNbMF07CmVjaG8gJHJlcGxhY2VtZW50c1sxXTsKZWNobyAkcmVwbGFjZW1lbnRzWzJdCj8+