3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_string = "<p>Hi this is &lt;&lt;name&gt;&gt; and I am living in &lt;&lt;address&gt;&gt;</p>"; echo preg_replace('~(&lt;&lt;)(.*?)(&gt;&gt;)~',"$$2",$your_string)."\n"; echo str_replace(array("&lt;&lt;","&gt;&gt;"),array("$",""),$your_string);

preferences:
16.55 ms | 405 KiB | 5 Q