3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tdr="<p>Previous reports stated that the Pokemon Alpha.</p><p>On the other hand, Pokemon Diamond and Pearl are reported .</p><p>On the other hand, Pokemon Diamond and Pearl are reported.</p>"; $pos = strrpos('<p>', $tdr); $newtdr = substr($tdr,0,$pos) . ' Hello ' . substr($tdr, $pos);
Output for 4.3.0 - 7.1.0