3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str="a b c d e f g h i j "; $replacements = [ "a" => "6a", "b" => "6e", "c" => "6i", "d" => "6o", "e" => "6u", "f" => "5a", "g" => "5e", "h" => "5i", "i" => "5o", "j" => "5u", ]; echo strtr($str, $replacements);?>
Output for git.master, git.master_jit, rfc.property-hooks
6a 6e 6i 6o 6u 5a 5e 5i 5o 5u

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
171.9 ms | 405 KiB | 5 Q