3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo htmlentities("&lt;script&gt;alert('test');&lt;&frasl;script&gt;"); echo PHP_EOL; echo strip_tags("<script>alert('test')</script>");
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; alert('test')
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/drXbi on line 3 PHP_EOLalert('test')