3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=63898 $key = "Foo " . chr(163); $array = array($key => ""); var_dump($array); $array2 = array($key); var_dump($array2); $json = json_encode($array); var_dump($json); var_dump(json_decode($json)); var_dump(json_encode('hey now you’re dumb')); /* $x = 'Audio Pass: Get live NFL game audio while you’re on the road with Audio Pass.'; var_dump(htmlentities($x)); var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'ISO-8859-1')); var_dump(htmlentities($x, ENT_COMPAT | ENT_SUBSTITUTE, 'UTF-8')); */
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["Foo �"]=> string(0) "" } array(1) { [0]=> string(5) "Foo �" } bool(false) NULL string(26) ""hey now you\u2019re dumb""

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