3v4l.org

run code in 300+ PHP versions simultaneously
<?php $form_item = "3"; $json = array("122240cb-253c-4046-adcd-ae81266709a6"=> array( "item" => array($form_item) )); echo json_encode($json, JSON_FORCE_OBJECT | JSON_PRETTY_PRINT); echo "\n---\n"; echo json_encode($json, JSON_FORCE_OBJECT + JSON_PRETTY_PRINT); echo "\n---\n"; echo json_encode($json, 16 + 128); echo "\n---\n"; echo json_encode($json, 144);
Output for git.master, git.master_jit, rfc.property-hooks
{ "122240cb-253c-4046-adcd-ae81266709a6": { "item": { "0": "3" } } } --- { "122240cb-253c-4046-adcd-ae81266709a6": { "item": { "0": "3" } } } --- { "122240cb-253c-4046-adcd-ae81266709a6": { "item": { "0": "3" } } } --- { "122240cb-253c-4046-adcd-ae81266709a6": { "item": { "0": "3" } } }

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:
30.42 ms | 478 KiB | 5 Q