3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "packages": [ { "id": "TEST", "name": "TEST", "desc": "TEST", "image": "TEST", "package": "TEST", "version": "1.00", "picpath": "TEST", "desc_1": "TEST", "desc_2": "TEST", "ReviewStars": "TEST", "Size": "", "Author": "TEST", "apptype": "TEST", "pv": "TEST", "main_icon_path": "TEST", "main_menu_pic": "TEST", "releaseddate": "5/03/2018" }, { "id": "TEST", "name": "TEST", "desc": "TEST", "image": "TEST", "package": "TEST", "version": "1.00", "picpath": "TEST", "desc_1": "ssss", "desc_2": "ssss", "ReviewStars": "5", "Size": "TEST", "Author": "TEST", "apptype": "222", "pv": "TEST", "main_icon_path": "TEST", "main_menu_pic": "TEST", "releaseddate": "2019-06-19" } ] }'; $jsonToArray = json_decode($json, true); removeByKey($jsonToArray['packages'] , 0); print_r($jsonToArray); function removeByKey(&$a, $key){ unset($a[$key]); return $a; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [packages] => Array ( [1] => Array ( [id] => TEST [name] => TEST [desc] => TEST [image] => TEST [package] => TEST [version] => 1.00 [picpath] => TEST [desc_1] => ssss [desc_2] => ssss [ReviewStars] => 5 [Size] => TEST [Author] => TEST [apptype] => 222 [pv] => TEST [main_icon_path] => TEST [main_menu_pic] => TEST [releaseddate] => 2019-06-19 ) ) )

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