3v4l.org

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