3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fiv = '<p id="copyright">hfsdjfhjdsfh<a>asasd</a></p>'; preg_match('/<p id="copyright">(.*)<\/p>$/i', $fiv, $k); str_replace($k[1], '', $fiv); echo $fiv;
Output for 4.3.0 - 7.2.0
<p id="copyright">hfsdjfhjdsfh<a>asasd</a></p>