3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{"members":{"oXawwweE4koMZxKj1nkm-oBGAOz8":{"openid":"oXawwweE4koMZxKj1nkm-oBGAOz8","nickname":"rainwsy","order":1,"gz_id":"gh_c536632f9b83","identify":0,"word":"\\u8111\\u7535\\u6ce2"},"oXawwwTFj0TPBnyPNSONhBSm3KuU":{"openid":"oXawwwTFj0TPBnyPNSONhBSm3KuU","nickname":"\\u4e0d\\u77e5\\u9053","gz_id":"gh_c536632f9b83","order":2,"identify":1,"word":"\\u5fc3\\u7535\\u56fe"},"oXawwwfAK-VuURbNiS6N8Ub-5oTs":{"openid":"oXawwwfAK-VuURbNiS6N8Ub-5oTs","nickname":"yi","gz_id":"gh_c536632f9b83","order":3,"identify":0,"word":"\\u8111\\u7535\\u6ce2"}},"words":{"commoner":"\\u8111\\u7535\\u6ce2","spy":"\\u5fc3\\u7535\\u56fe"},"owner_id":"oXawwweE4koMZxKj1nkm-oBGAOz8","total_num":3,"commoner_num":2,"spy_num":1,"room_no":63924,"create_time":1466765937,"status":1,"users":{"1":"oXawwweE4koMZxKj1nkm-oBGAOz8","2":"oXawwwTFj0TPBnyPNSONhBSm3KuU","3":"oXawwwfAK-VuURbNiS6N8Ub-5oTs"},"punishes":{"oXawwwfAK-VuURbNiS6N8Ub-5oTs":"5","oXawwwTFj0TPBnyPNSONhBSm3KuU":"5","oXawwweE4koMZxKj1nkm-oBGAOz8":"4"},"punish":{"5":2,"4":1},"punish_id":2,"commoners":["oXawwweE4koMZxKj1nkm-oBGAOz8","oXawwwfAK-VuURbNiS6N8Ub-5oTs"],"rounds":{"":{"temp":[1,2,3]},"1":{"users":{"1":"oXawwweE4koMZxKj1nkm-oBGAOz8","2":"oXawwwTFj0TPBnyPNSONhBSm3KuU","3":"oXawwwfAK-VuURbNiS6N8Ub-5oTs"},"describe":{"oXawwweE4koMZxKj1nkm-oBGAOz8":"shuosha?"}}},"spies":["oXawwwTFj0TPBnyPNSONhBSm3KuU"],"round_num":1}'; $room = json_decode($json, true); $next_user_order =2 ; echo $room['members'][$room['users'][$next_user_order]]['nickname'];
based on b59mF
Output for 5.5.0 - 7.3.0rc4
不知道