3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_lines="any word here related to #English must #be replaced."; $output = preg_replace("/(#\w+)/", "<a href='bla bla'>$1</a>", $input_lines); echo $output;

preferences:
16.33 ms | 404 KiB | 5 Q