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("/<[^\/]+\/.*>/mi", "", $str);
Output for 7.3.0alpha1