3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( strip_tags('foo < herz'), strip_tags('foo<herz'), strip_tags('foo<herz>'), strip_tags('foo < herz > bar'), strip_tags('foo< ##myglue## herz>bar'), strip_tags('foo< ##myglue## herz>bar'), strip_tags("<p<p > >>>>>{-8]Rootksmpology > >>>>>{-5]CA394ME41GEWNGAMZ") );
Output for 4.3.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(10) "foo < herz" string(3) "foo" string(3) "foo" string(16) "foo < herz > bar" string(24) "foo< ##myglue## herz>bar" string(24) "foo< ##myglue## herz>bar" string(50) ">>>>{-8]Rootksmpology > >>>>>{-5]CA394ME41GEWNGAMZ"
Output for 4.3.0 - 4.3.1
string(4) "foo " string(3) "foo" string(3) "foo" string(8) "foo bar" string(6) "foobar" string(6) "foobar" string(50) ">>>>{-8]Rootksmpology > >>>>>{-5]CA394ME41GEWNGAMZ"