3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '<br>a&apos;b'; var_dump(strip_tags(html_entity_decode($a))); var_dump(html_entity_decode(strip_tags($a)));
based on Qi2gX
Output for 4.3.0 - 7.1.0
string(8) "a&apos;b" string(8) "a&apos;b"