3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $fileContent = file_get_contents( plik ) $fileContent = '{ "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "content": "P" } } }'; $parsedArray = json_decode($fileContent); print_r($parsedArray); echo str_repeat("=", 50); $parsedArray->glossary->title = "heheszki"; $parsedArray->glossary->GlossDiv->title = "Testujemy"; $parsedArray->glossary->GlossDiv->content = "Testujemy"; print_r($parsedArray); echo json_encode($parsedArray);
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [glossary] => stdClass Object ( [title] => example glossary [GlossDiv] => stdClass Object ( [title] => S [content] => P ) ) ) ==================================================stdClass Object ( [glossary] => stdClass Object ( [title] => heheszki [GlossDiv] => stdClass Object ( [title] => Testujemy [content] => Testujemy ) ) ) {"glossary":{"title":"heheszki","GlossDiv":{"title":"Testujemy","content":"Testujemy"}}}

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:
154.52 ms | 407 KiB | 5 Q