3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 'ciao </container> e <container tipo="autore"> ciao'; $string = preg_replace('#\s?([^\>]+)\s?\<container tipo="autore"\>#', 'X\1X', $x); echo $string;
Output for 4.3.0 - 7.1.7
ciao </container>Xe X ciao