3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<'EOJSON' { "a": [ "No", "Yes" ], "b": { "0": "No", "1": "Yes" } } EOJSON; $json = json_decode($json); var_dump($json); echo json_encode($json, JSON_PRETTY_PRINT), "\n", json_encode($json, JSON_FORCE_OBJECT | JSON_PRETTY_PRINT);
Output for git.master, git.master_jit, rfc.property-hooks
object(stdClass)#1 (2) { ["a"]=> array(2) { [0]=> string(2) "No" [1]=> string(3) "Yes" } ["b"]=> object(stdClass)#2 (2) { ["0"]=> string(2) "No" ["1"]=> string(3) "Yes" } } { "a": [ "No", "Yes" ], "b": { "0": "No", "1": "Yes" } } { "a": { "0": "No", "1": "Yes" }, "b": { "0": "No", "1": "Yes" } }

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:
142.9 ms | 406 KiB | 5 Q