3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $html = '<article>lorem ipsum<br> dolor<br /> sit<br/> amet</article>'; echo strip_tags($html) . "\n"; echo strip_tags($html, '<br>') . "\n"; echo strip_tags($html, '<br/>') . "\n"; echo strip_tags($html, '<br><br />') . "\n"; echo strip_tags($html, '<br><br/>') ."\n";
based on ADilr
Output for 5.3.4 - 7.2.0
lorem ipsum dolor sit amet lorem ipsum<br> dolor<br /> sit<br/> amet lorem ipsum dolor sit amet lorem ipsum<br> dolor<br /> sit<br/> amet lorem ipsum<br> dolor<br /> sit<br/> amet
Output for 4.3.0 - 5.3.3
lorem ipsum dolor sit amet lorem ipsum<br> dolor<br /> sit amet lorem ipsum dolor sit<br/> amet lorem ipsum<br> dolor<br /> sit amet lorem ipsum<br> dolor<br /> sit<br/> amet