3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<'JSON' { "query": [ "and for tomorrow" ], "contexts": "[{'name':'weather', 'lifespan' : 4}]", "location": { "latitude": 37.459157, "longitude": -122.17926 }, "timezone": "America/New_York", "lang": "en", "sessionId": "1234567890" } JSON; $data = json_decode($json, true); var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { ["query"]=> array(1) { [0]=> string(16) "and for tomorrow" } ["contexts"]=> string(36) "[{'name':'weather', 'lifespan' : 4}]" ["location"]=> array(2) { ["latitude"]=> float(37.459157) ["longitude"]=> float(-122.17926) } ["timezone"]=> string(16) "America/New_York" ["lang"]=> string(2) "en" ["sessionId"]=> string(10) "1234567890" }

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:
33.92 ms | 402 KiB | 8 Q