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:
43.77 ms | 405 KiB | 5 Q