3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encoded = htmlentities("Hey I am a nefarious hacker! Look at my brackets! <script>HAHAHA</script>!"); $decoded = html_entity_decode($encoded); echo "htmlentities makes the text from the comment box safe to put in HTML source code. \n"; echo $encoded; echo "\n\nLike the user's web browser will do automatically, html_entity_decode makes it look normal again.\n"; echo $decoded; ?>
Output for git.master, git.master_jit, rfc.property-hooks
htmlentities makes the text from the comment box safe to put in HTML source code. Hey I am a nefarious hacker! Look at my brackets! &lt;script&gt;HAHAHA&lt;/script&gt;! Like the user's web browser will do automatically, html_entity_decode makes it look normal again. Hey I am a nefarious hacker! Look at my brackets! <script>HAHAHA</script>!

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
36.18 ms | 402 KiB | 8 Q