3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "/[^<>agt](.*)[^g<a\/t>]/"; $replace = "your new inner text"; $string = "thanks <tag>i dont know what is here</tag>"; echo preg_replace($search,$replace,$string);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
170.06 ms | 2268 KiB | 9 Q