3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_object = '[{"125":"1"},{"126":"2"},{"127":"3"},{"128":"4"},{"129":"5"},{"130":"6"},{"131":"7"},{"132":"8"},{"133":"9"},{"134":"10"},{"135":"11"}]'; $json = json_decode($json_object); echo implode(", ", array_map(function($obj) { foreach ($obj as $p => $v) { return $p;} }, $json)); echo "\n"; echo implode(", ", array_map(function($obj) { foreach ($obj as $p => $v) { return $v;} }, $json));
Output for git.master, git.master_jit, rfc.property-hooks
125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11

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:
74.11 ms | 405 KiB | 5 Q