3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $d = htmlspecialchars(trim('<script>alert("Работает?");</script>'), ENT_QUOTES, 'UTF-8'); echo html_entity_decode($d);
Output for 4.3.2 - 7.1.0
&lt;script&gt;alert(&quot;Работает?&quot;);&lt;/script&gt;<script>alert("Работает?");</script>
Output for 4.3.0 - 4.3.1

Process exited with code 139.