3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $watchDog = '{ "monitoredSettings": [{ "settingID": "0", "complianceValue": "false" }, { "settingID": "2", "complianceValue": "true" }, { "settingID": "3", "complianceValue": "false" }, { "settingID": "4", "complianceValue": "false" }, { "settingID": "5", "complianceValue": "true" }, { "settingID": "6", "complianceValue": "false" }, { "settingID": "7", "complianceValue": "false" }, { "settingID": "9", "complianceValue": "true" }, { "settingID": "10", "complianceValue": "false" }, { "settingID": "11", "complianceValue": "true" }, { "settingID": "12", "complianceValue": "true" }] }'; var_dump(json_decode($watchDog));
Output for 7.0.0 - 7.3.0alpha1
object(stdClass)#12 (1) { ["monitoredSettings"]=> array(11) { [0]=> object(stdClass)#1 (2) { ["settingID"]=> string(1) "0" ["complianceValue"]=> string(5) "false" } [1]=> object(stdClass)#2 (2) { ["settingID"]=> string(1) "2" ["complianceValue"]=> string(4) "true" } [2]=> object(stdClass)#3 (2) { ["settingID"]=> string(1) "3" ["complianceValue"]=> string(5) "false" } [3]=> object(stdClass)#4 (2) { ["settingID"]=> string(1) "4" ["complianceValue"]=> string(5) "false" } [4]=> object(stdClass)#5 (2) { ["settingID"]=> string(1) "5" ["complianceValue"]=> string(4) "true" } [5]=> object(stdClass)#6 (2) { ["settingID"]=> string(1) "6" ["complianceValue"]=> string(5) "false" } [6]=> object(stdClass)#7 (2) { ["settingID"]=> string(1) "7" ["complianceValue"]=> string(5) "false" } [7]=> object(stdClass)#8 (2) { ["settingID"]=> string(1) "9" ["complianceValue"]=> string(4) "true" } [8]=> object(stdClass)#9 (2) { ["settingID"]=> string(2) "10" ["complianceValue"]=> string(5) "false" } [9]=> object(stdClass)#10 (2) { ["settingID"]=> string(2) "11" ["complianceValue"]=> string(4) "true" } [10]=> object(stdClass)#11 (2) { ["settingID"]=> string(2) "12" ["complianceValue"]=> string(4) "true" } } }
Output for 5.6.0 - 5.6.30, hhvm-3.15.4
object(stdClass)#1 (1) { ["monitoredSettings"]=> array(11) { [0]=> object(stdClass)#2 (2) { ["settingID"]=> string(1) "0" ["complianceValue"]=> string(5) "false" } [1]=> object(stdClass)#3 (2) { ["settingID"]=> string(1) "2" ["complianceValue"]=> string(4) "true" } [2]=> object(stdClass)#4 (2) { ["settingID"]=> string(1) "3" ["complianceValue"]=> string(5) "false" } [3]=> object(stdClass)#5 (2) { ["settingID"]=> string(1) "4" ["complianceValue"]=> string(5) "false" } [4]=> object(stdClass)#6 (2) { ["settingID"]=> string(1) "5" ["complianceValue"]=> string(4) "true" } [5]=> object(stdClass)#7 (2) { ["settingID"]=> string(1) "6" ["complianceValue"]=> string(5) "false" } [6]=> object(stdClass)#8 (2) { ["settingID"]=> string(1) "7" ["complianceValue"]=> string(5) "false" } [7]=> object(stdClass)#9 (2) { ["settingID"]=> string(1) "9" ["complianceValue"]=> string(4) "true" } [8]=> object(stdClass)#10 (2) { ["settingID"]=> string(2) "10" ["complianceValue"]=> string(5) "false" } [9]=> object(stdClass)#11 (2) { ["settingID"]=> string(2) "11" ["complianceValue"]=> string(4) "true" } [10]=> object(stdClass)#12 (2) { ["settingID"]=> string(2) "12" ["complianceValue"]=> string(4) "true" } } }