3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = ' { "profiles": { "llaurenss": { "name": "llaurenss" } }, "selectedProfile": "llaurenss", "clientToken": "31a5d808-c487-47b2-b85a-ce535d68b48b", "authenticationDatabase": { "3ea975d90add4270af3b1adef9b3b975": { "displayName": "llaurenss", "accessToken": "ae0b09da6979439587b41e45353f2b9d", "userid": "04c83cc8174e1846ae96f577a21c07c3", "uuid": "3ea975d9-0add-4270-af3b-1adef9b3b975", "username": "henkionline@gmail.com" } }, "selectedUser": "3ea975d90add4270af3b1adef9b3b975", "launcherVersion": { "name": "1.6.61", "format": 18 } }'; $myArray = json_decode($json, true); echo $myArray['authenticationDatabase']['3ea975d90add4270af3b1adef9b3b975']['displayName']; echo ':'; echo $myArray['authenticationDatabase']['3ea975d90add4270af3b1adef9b3b975']['uuid']; echo ':'; echo $myArray['authenticationDatabase']['3ea975d90add4270af3b1adef9b3b975']['accessToken']; echo ':'; echo $myArray['clientToken']; ?>
based on fHSf4
Output for 5.6.0 - 7.3.0beta1
llaurenss:3ea975d9-0add-4270-af3b-1adef9b3b975:ae0b09da6979439587b41e45353f2b9d:31a5d808-c487-47b2-b85a-ce535d68b48b