3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = <<<EOL <p> </p> <h2>Content</h2> <p>Content</p> <h2>Content</h2> <p>Content</p> EOL; echo preg_replace("/<[^\/]+\/.*>/i", "", $str, 1);
Output for 7.3.0alpha1
<h2>Content</h2> <p>Content</p> <h2>Content</h2> <p>Content</p>