3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "ab cd ef gh"; echo "$a\n"; $b = strtr($a, array("ab"=>"cd", "ef"=>"gh")); echo "$b\n";
based on 45uAf
Output for 4.3.0 - 7.1.0
ab cd ef gh cd cd gh gh