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 5.6.0 - 5.6.27, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
array(2) { ["label"]=> string(3) "cde" ["link"]=> string(7) "http://" }

preferences:
99.68 ms | 1530 KiB | 4 Q