3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1="[i]this is just a stest you jsfajz[/i]"; echo preg_replace("/\[i\](.*)\[\/i\]/i", "<i>\\1</i>", $var1); ?>
Output for 4.3.0 - 7.1.0
<i>this is just a stest you jsfajz</i>