3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bericht = '[url]Link [/url]'; $bericht = preg_replace("/\[url\](.+?)\[\/url\]/si", "<a href='1' target='_blank'\>\\1\<\/a>", $bericht); echo $bericht;
Output for 4.3.0 - 7.2.0
<a href='1' target='_blank'\>Link \<\/a>