3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(str_replace(['a','b'],['A','B'],['a' => 'a', 'b' => 'b', 'c' => ['a','b']]));

preferences:
23.85 ms | 405 KiB | 5 Q