3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $content="aaa <!--[if (gt IE 9)|!(IE)]><!--> <html lang=\"en\"> <!--<![endif]--> bbb"; $tagOpen="<!--[if (gt IE 9)|!(IE)]><!-->"; $tagClose="<!--<![endif]-->"; $condition='/'.preg_quote($tagOpen).'(.*?)'.preg_quote($tagClose).'/i'; $content=preg_replace($condition, '$1', $content); echo htmlentities($content);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
aaa &lt;html lang=&quot;en&quot;&gt; bbb