3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "a b c d e f "; $string = str_replace("a b c", "1 2 3", $string); echo $string;

preferences:
44.45 ms | 402 KiB | 5 Q