3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phrase = "*title** Some text goes here."; $target = ['**', '*']; $replace = ["</h1>", "<h1>"]; $newPhrase = str_replace($target, $replace, $phrase); echo $newPhrase;

preferences:
35.85 ms | 404 KiB | 5 Q