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 what's sent in the html source... so the browser doesn't actually recognize it as a script."; echo $encoded; echo "This is what it looks like on screen to the user. echo $decoded; ?>
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected end of file in /in/QpDM6 on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/QpDM6 on line 11
Process exited with code 255.

preferences:
183.19 ms | 1395 KiB | 67 Q