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 "This is how you want the text to be encoded from the comment box, when it's included as a part of html source code. \n"; echo $encoded; echo "\n\nThis is what it will look like on screen to the user.\n"; echo $decoded; ?>
Output for git.master, git.master_jit, rfc.property-hooks
This is how you want the text to be encoded from the comment box, when it's included as a part of html source code. Hey I am a nefarious hacker! Look at my brackets! &lt;script&gt;HAHAHA&lt;/script&gt;! This is what it will look like on screen to the user. 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:
34.47 ms | 402 KiB | 8 Q