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 => ""); print_r($array); $json = json_encode($array); echo $json."\n"; print_r(json_decode($json)); $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 ( [Foo �] => ) string(83) "Audio Pass: Get live NFL game audio while you&rsquo;re on the road with Audio Pass." string(85) "Audio Pass: Get live NFL game audio while you&acirc;��re on the road with Audio Pass." string(83) "Audio Pass: Get live NFL game audio while you&rsquo;re on the road with Audio Pass."

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