3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo htmlentities("&lt;script&gt;alert('test');&lt;&frasl;script&gt;"); echo "\n"; echo htmlentites(strip_tags("<script>alert('test')</script>"));
Output for 7.0.0 - 7.1.0
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Fatal error: Uncaught Error: Call to undefined function htmlentites() in /in/I0mrU:4 Stack trace: #0 {main} thrown in /in/I0mrU on line 4
Process exited with code 255.
Output for hhvm-3.12.0
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Fatal error: Call to undefined function htmlentites() in /in/I0mrU on line -1
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Fatal error: Call to undefined function htmlentites() in /in/I0mrU on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Fatal error: Call to undefined function: htmlentites() in /in/I0mrU on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Fatal error: Call to undefined function: htmlentites() in /in/I0mrU on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
&amp;lt;script&amp;gt;alert('test');&amp;lt;&amp;frasl;script&amp;gt; Fatal error: Call to undefined function: htmlentites() in /in/I0mrU on line 4