3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '[{ "title" : "ETopup", "name" : "etopup", "resources" : [ { "title" : "End Subscriber TopUp (D2C)", "name" : "etopup.D2C", "value" : 1, "resources" : [], "grant_to" : 2 }, { "title" : "Dealer Transfer (D2D)", "name" : "etopup.D2D", "value" : null, "resources" : [{ "title" : "D2D transfer to Dealer 1", "name" : "etopup.D2D.dealer1", "value" : "{\"groupPath\":\"etopup.dealers.dealer1\"}", "resources" : [], "grant_to" : 2 }, { "title" : "D2D transfer to Dealer 2", "name" : "etopup.D2D.dealer2", "value" : "{\"groupPath\":\"etopup.dealers.dealer2\"}", "resources" : [], "grant_to" : 2 }, { "title" : "D2D transfer to Dealer 3", "name" : "etopup.D2D.dealer3", "value" : "{\"groupPath\":\"etopup.dealers.dealer3\"}", "resources" : [], "grant_to" : 2 }, { "title" : "D2D transfer to Dealer 4", "name" : "etopup.D2D.dealer4", "value" : "{\"groupPath\":\"etopup.dealers.dealer4\"}", "resources" : [], "grant_to" : 2 }, { "title" : "D2D transfer to Dealer 5", "name" : "etopup.D2D.dealer5", "value" : "{\"groupPath\":\"etopup.dealers.dealer5\"}", "resources" : [], "grant_to" : 2 }] }, { "title" : "Clawback", "name" : "etopup.clawback", "value" : null, "resources" : [{ "title" : "Clawback transaction made to D1", "name" : "etopup.clawback.dealer1", "value" : "{\"groupPath\":\"etopup.dealers.dealer1\"}", "resources" : [] }, { "title" : "Clawback transaction made to D2", "name" : "etopup.clawback.dealer2", "value" : "{\"groupPath\":\"etopup.dealers.dealer2\"}", "resources" : [] }, { "title" : "Clawback transaction made to D3", "name" : "etopup.clawback.dealer3", "value" : "{\"groupPath\":\"etopup.dealers.dealer3\"}", "resources" : [] }, { "title" : "Clawback transaction made to D4", "name" : "etopup.clawback.dealer4", "value" : "{\"groupPath\":\"etopup.dealers.dealer4\"}", "resources" : [] }, { "title" : "Clawback transaction made to D5", "name" : "etopup.clawback.dealer5", "value" : "{\"groupPath\":\"etopup.dealers.dealer5\"}", "resources" : [] }] }, { "title" : "Reset Other Password", "name" : "etopup.resetpass", "value" : null, "resources" : [{ "title" : "Reset Password of D1", "name" : "etopup.resetpass.dealer1", "value" : "{\"groupPath\":\"etopup.dealers.dealer1\"}", "resources" : [] }, { "title" : "Reset Password of D2", "name" : "etopup.resetpass.dealer2", "value" : "{\"groupPath\":\"etopup.dealers.dealer2\"}", "resources" : [] }, { "title" : "Reset Password of D3", "name" : "etopup.resetpass.dealer3", "value" : "{\"groupPath\":\"etopup.dealers.dealer3\"}", "resources" : [] }, { "title" : "Reset Password of D4", "name" : "etopup.resetpass.dealer4", "value" : "{\"groupPath\":\"etopup.dealers.dealer4\"}", "resources" : [] }, { "title" : "Reset Password of D5", "name" : "etopup.resetpass.dealer5", "value" : "{\"groupPath\":\"etopup.dealers.dealer5\"}", "resources" : [] }] }, { "title" : "Reset Own Password", "name" : "etopup.resetpassown", "value" : 1, "resources" : [], "grant_to" : 2 }, { "title" : "Reset Other PIN", "name" : "etopup.resetpin", "value" : null, "resources" : [{ "title" : "Reset PIN of D1", "name" : "etopup.resetpin.dealer1", "value" : "{\"groupPath\":\"etopup.dealers.dealer1\"}", "resources" : [] }, { "title" : "Reset PIN of D2", "name" : "etopup.resetpin.dealer2", "value" : "{\"groupPath\":\"etopup.dealers.dealer2\"}", "resources" : [] }, { "title" : "Reset PIN of D3", "name" : "etopup.resetpin.dealer3", "value" : "{\"groupPath\":\"etopup.dealers.dealer3\"}", "resources" : [] }, { "title" : "Reset PIN of D4", "name" : "etopup.resetpin.dealer4", "value" : "{\"groupPath\":\"etopup.dealers.dealer4\"}", "resources" : [] }, { "title" : "Reset PIN of D5", "name" : "etopup.resetpin.dealer5", "value" : "{\"groupPath\":\"etopup.dealers.dealer5\"}", "resources" : [] }] }, { "title" : "Reset Own PIN", "name" : "etopup.resetpinown", "value" : 1, "resources" : [], "grant_to" : 2 }, { "title" : "Grant Incentive", "name" : "etopup.grantincentive", "value" : 1, "resources" : [] }, { "title" : "Operator Clawback Transaction", "name" : "etopup.mnoClawbackD2D", "value" : 1, "resources" : [] }, { "title" : "Operator Clawback Grant Incentive", "name" : "etopup.mnoClawbackIncentive", "value" : 1, "resources" : [] } ] }]'; var_dump(json_decode($x));
Output for 5.6.0 - 7.3.0alpha1
array(1) { [0]=> object(stdClass)#1 (3) { ["title"]=> string(6) "ETopup" ["name"]=> string(6) "etopup" ["resources"]=> array(10) { [0]=> object(stdClass)#2 (5) { ["title"]=> string(26) "End Subscriber TopUp (D2C)" ["name"]=> string(10) "etopup.D2C" ["value"]=> int(1) ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [1]=> object(stdClass)#3 (4) { ["title"]=> string(21) "Dealer Transfer (D2D)" ["name"]=> string(10) "etopup.D2D" ["value"]=> NULL ["resources"]=> array(5) { [0]=> object(stdClass)#4 (5) { ["title"]=> string(24) "D2D transfer to Dealer 1" ["name"]=> string(18) "etopup.D2D.dealer1" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer1"}" ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [1]=> object(stdClass)#5 (5) { ["title"]=> string(24) "D2D transfer to Dealer 2" ["name"]=> string(18) "etopup.D2D.dealer2" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer2"}" ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [2]=> object(stdClass)#6 (5) { ["title"]=> string(24) "D2D transfer to Dealer 3" ["name"]=> string(18) "etopup.D2D.dealer3" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer3"}" ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [3]=> object(stdClass)#7 (5) { ["title"]=> string(24) "D2D transfer to Dealer 4" ["name"]=> string(18) "etopup.D2D.dealer4" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer4"}" ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [4]=> object(stdClass)#8 (5) { ["title"]=> string(24) "D2D transfer to Dealer 5" ["name"]=> string(18) "etopup.D2D.dealer5" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer5"}" ["resources"]=> array(0) { } ["grant_to"]=> int(2) } } } [2]=> object(stdClass)#9 (4) { ["title"]=> string(8) "Clawback" ["name"]=> string(15) "etopup.clawback" ["value"]=> NULL ["resources"]=> array(5) { [0]=> object(stdClass)#10 (4) { ["title"]=> string(31) "Clawback transaction made to D1" ["name"]=> string(23) "etopup.clawback.dealer1" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer1"}" ["resources"]=> array(0) { } } [1]=> object(stdClass)#11 (4) { ["title"]=> string(31) "Clawback transaction made to D2" ["name"]=> string(23) "etopup.clawback.dealer2" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer2"}" ["resources"]=> array(0) { } } [2]=> object(stdClass)#12 (4) { ["title"]=> string(31) "Clawback transaction made to D3" ["name"]=> string(23) "etopup.clawback.dealer3" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer3"}" ["resources"]=> array(0) { } } [3]=> object(stdClass)#13 (4) { ["title"]=> string(31) "Clawback transaction made to D4" ["name"]=> string(23) "etopup.clawback.dealer4" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer4"}" ["resources"]=> array(0) { } } [4]=> object(stdClass)#14 (4) { ["title"]=> string(31) "Clawback transaction made to D5" ["name"]=> string(23) "etopup.clawback.dealer5" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer5"}" ["resources"]=> array(0) { } } } } [3]=> object(stdClass)#15 (4) { ["title"]=> string(20) "Reset Other Password" ["name"]=> string(16) "etopup.resetpass" ["value"]=> NULL ["resources"]=> array(5) { [0]=> object(stdClass)#16 (4) { ["title"]=> string(20) "Reset Password of D1" ["name"]=> string(24) "etopup.resetpass.dealer1" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer1"}" ["resources"]=> array(0) { } } [1]=> object(stdClass)#17 (4) { ["title"]=> string(20) "Reset Password of D2" ["name"]=> string(24) "etopup.resetpass.dealer2" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer2"}" ["resources"]=> array(0) { } } [2]=> object(stdClass)#18 (4) { ["title"]=> string(20) "Reset Password of D3" ["name"]=> string(24) "etopup.resetpass.dealer3" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer3"}" ["resources"]=> array(0) { } } [3]=> object(stdClass)#19 (4) { ["title"]=> string(20) "Reset Password of D4" ["name"]=> string(24) "etopup.resetpass.dealer4" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer4"}" ["resources"]=> array(0) { } } [4]=> object(stdClass)#20 (4) { ["title"]=> string(20) "Reset Password of D5" ["name"]=> string(24) "etopup.resetpass.dealer5" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer5"}" ["resources"]=> array(0) { } } } } [4]=> object(stdClass)#21 (5) { ["title"]=> string(18) "Reset Own Password" ["name"]=> string(19) "etopup.resetpassown" ["value"]=> int(1) ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [5]=> object(stdClass)#22 (4) { ["title"]=> string(15) "Reset Other PIN" ["name"]=> string(15) "etopup.resetpin" ["value"]=> NULL ["resources"]=> array(5) { [0]=> object(stdClass)#23 (4) { ["title"]=> string(15) "Reset PIN of D1" ["name"]=> string(23) "etopup.resetpin.dealer1" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer1"}" ["resources"]=> array(0) { } } [1]=> object(stdClass)#24 (4) { ["title"]=> string(15) "Reset PIN of D2" ["name"]=> string(23) "etopup.resetpin.dealer2" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer2"}" ["resources"]=> array(0) { } } [2]=> object(stdClass)#25 (4) { ["title"]=> string(15) "Reset PIN of D3" ["name"]=> string(23) "etopup.resetpin.dealer3" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer3"}" ["resources"]=> array(0) { } } [3]=> object(stdClass)#26 (4) { ["title"]=> string(15) "Reset PIN of D4" ["name"]=> string(23) "etopup.resetpin.dealer4" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer4"}" ["resources"]=> array(0) { } } [4]=> object(stdClass)#27 (4) { ["title"]=> string(15) "Reset PIN of D5" ["name"]=> string(23) "etopup.resetpin.dealer5" ["value"]=> string(38) "{"groupPath":"etopup.dealers.dealer5"}" ["resources"]=> array(0) { } } } } [6]=> object(stdClass)#28 (5) { ["title"]=> string(13) "Reset Own PIN" ["name"]=> string(18) "etopup.resetpinown" ["value"]=> int(1) ["resources"]=> array(0) { } ["grant_to"]=> int(2) } [7]=> object(stdClass)#29 (4) { ["title"]=> string(15) "Grant Incentive" ["name"]=> string(21) "etopup.grantincentive" ["value"]=> int(1) ["resources"]=> array(0) { } } [8]=> object(stdClass)#30 (4) { ["title"]=> string(29) "Operator Clawback Transaction" ["name"]=> string(21) "etopup.mnoClawbackD2D" ["value"]=> int(1) ["resources"]=> array(0) { } } [9]=> object(stdClass)#31 (4) { ["title"]=> string(33) "Operator Clawback Grant Incentive" ["name"]=> string(27) "etopup.mnoClawbackIncentive" ["value"]=> int(1) ["resources"]=> array(0) { } } } } }