3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<JSON { "created_time": "2019-10-28T03:02:49+0000", "id": "2505284979588949", "field_data": [ { "name": "groupID", "values": [ "a3da23rad6" ] }, { "name": "email", "values": [ "edwardnorton@gmail.com" ] }, { "name": "first_name", "values": [ "Edward" ] } ] } JSON; $data = json_decode($json, true); $fields = array_reduce($data['field_data'], static function ($fields, $entry) { $fields[$entry['name']] = $entry['values']; return $fields; }); print_r($fields);
Output for git.master, git.master_jit
/bin/php-git-master: error while loading shared libraries: libonig.so.5: cannot open shared object file: No such file or directory
Process exited with code 127.
Output for rfc.property-hooks
Array ( [groupID] => Array ( [0] => a3da23rad6 ) [email] => Array ( [0] => edwardnorton@gmail.com ) [first_name] => Array ( [0] => Edward ) )

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