3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "<script>alert(document.cookie);</script>"; echo htmlentities("<script>alert(document.cookie);</script>"); ?>
based on fvqT9
Output for 4.3.0 - 7.2.0
<script>alert(document.cookie);</script>&lt;script&gt;alert(document.cookie);&lt;/script&gt;