3v4l.org

run code in 150+ 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 5.3.0 - 7.1.0
Warning: str_replace() expects at least 3 parameters, 2 given in /in/vEi4B on line 4 <p id="copyright">hfsdjfhjdsfh<a>asasd</a></p>
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for str_replace() in /in/vEi4B on line 4 <p id="copyright">hfsdjfhjdsfh<a>asasd</a></p>