3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo htmlentities("&lt;script&gt;alert('test');&lt;&frasl;script&gt;"); echo '<br>'; echo htmlentities("<script>alert('test')</script>");
Output for 4.3.0 - 7.1.0
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt;<br>&lt;script&gt;alert('test')&lt;/script&gt;