3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<script>alert(document.cookie);</script>&lt;script&gt;alert(document.cookie);&lt;/script&gt;
Output for hhvm-3.10.0

Process exited with code 153.