3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "foo boo foo boo"; echo "$a\n"; $b = strtr($a, array("foo"=>"boo", "boo"=>"foo")); echo "$b\n";

preferences:
29.75 ms | 404 KiB | 5 Q