3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $trans = array("a" => "A","b"=> "B","c"=> "C","d"=> "D"); $test_str="aaaa"; echo strtr($test_str,$trans);
based on i0vAI
Output for 4.3.0 - 7.2.0
AAAA