3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = <<<INPUT bar&quot;; alert(&quot;Meow!&quot;); var xss=&quot;true INPUT; $array = array('input' => $input); $output = json_encode($array, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT); ?> <head> <script type="text/javascript"> var array = <?php echo $output; ?>; var input = array.input; </script> </head>
Output for git.master, git.master_jit, rfc.property-hooks
<head> <script type="text/javascript"> var array = {"input":"bar\u0026quot;; alert(\u0026quot;Meow!\u0026quot;); var xss=\u0026quot;true"}; var input = array.input; </script> </head>

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:
47.22 ms | 401 KiB | 8 Q