3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[ { "guid": "12", "firstName": "James", "middleName": "", "gender": "male", "additional": { "skype": "", "phones": [], "sipPhones": [], "birthDate": "1970-06-02", "startWithCustomer": "2015-12-07", "endOfProbation": "2016-03-07", "Place": [ { "label": "abc", "link": "http://" }, { "label": "cde", "link": "http://" } ] } }]'; $user = json_decode($json, true); $lastPlace = end($user[0]['additional']['Place']); var_dump($lastPlace);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["label"]=> string(3) "cde" ["link"]=> string(7) "http://" }

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:
42.04 ms | 1527 KiB | 4 Q