3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = <<<_JSON [{ "Rating": "1600", "ID": "16733310", "Name": "LARRATEGUI,MARTIN", "Expires": "1000.10.10" },{ "Rating": "1353", "ID": "16429901", "Name": "ADDABBO,ERIC M", "Expires": "1000.10.10" }] _JSON; $array = json_decode($json, true); $filter = ['ID' => true]; $newArray = array_map(function($item) use ($filter) { return array_diff_key($item, $filter); }, $array); echo json_encode($newArray, JSON_PRETTY_PRINT);
Output for git.master_jit, git.master, rfc.property-hooks
[ { "Rating": "1600", "Name": "LARRATEGUI,MARTIN", "Expires": "1000.10.10" }, { "Rating": "1353", "Name": "ADDABBO,ERIC M", "Expires": "1000.10.10" } ]

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:
163.32 ms | 406 KiB | 5 Q