3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "abcbca"; echo strtr($string, array('a' => 'b', 'b' => 'a'));

preferences:
25.93 ms | 404 KiB | 5 Q