3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"messages":{"resultCode":"Ok","message":[{"code":"I00001","text":"Successful."}]}}'));
Output for 7.0.0 - 7.3.0beta1
object(stdClass)#3 (1) { ["messages"]=> object(stdClass)#1 (2) { ["resultCode"]=> string(2) "Ok" ["message"]=> array(1) { [0]=> object(stdClass)#2 (2) { ["code"]=> string(6) "I00001" ["text"]=> string(11) "Successful." } } } }
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0
object(stdClass)#1 (1) { ["messages"]=> object(stdClass)#2 (2) { ["resultCode"]=> string(2) "Ok" ["message"]=> array(1) { [0]=> object(stdClass)#3 (2) { ["code"]=> string(6) "I00001" ["text"]=> string(11) "Successful." } } } }