3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = json_decode('[ { "Date":"2014-12-29", "totalCount":"1" }, { "Date":"2015-02-05", "totalCount":"116" }, { "Date":"2015-02-06", "totalCount":"7" }, { "Date":"2015-02-07", "totalCount":"5" }, { "Date":"2015-02-08", "totalCount":"16" }, { "Date":"2015-02-09", "totalCount":"39" }, { "Date":"2015-02-10", "totalCount":"29" }, { "Date":"2015-02-11", "totalCount":"7" }, { "Date":"2015-02-12", "totalCount":"14" }, { "Date":"2015-02-13", "totalCount":"16" }, { "Date":"2015-02-14", "totalCount":"12" }, { "Date":"2015-02-15", "totalCount":"7" }, { "Date":"2015-02-16", "totalCount":"1" }, { "Date":"2015-02-17", "totalCount":"8" }, { "Date":"2015-02-18", "totalCount":"25" }, { "Date":"2015-02-19", "totalCount":"17" }, { "Date":"2015-02-20", "totalCount":"15" }, { "Date":"2015-02-21", "totalCount":"10" }, { "Date":"2015-02-22", "totalCount":"7" }, { "Date":"2015-02-23", "totalCount":"8" }, { "Date":"2015-02-24", "totalCount":"17" }, { "Date":"2015-02-25", "totalCount":"3" }, { "Date":"2015-02-26", "totalCount":"3" }, { "Date":"2015-02-27", "totalCount":"2" }, { "Date":"2015-02-28", "totalCount":"1" }, { "Date":"2015-03-01", "totalCount":"3" }, { "Date":"2015-03-02", "totalCount":"10" }, { "Date":"2015-03-03", "totalCount":"1" }, { "Date":"2015-03-04", "totalCount":"9" }, { "Date":"2015-03-05", "totalCount":"3" }, { "Date":"2015-03-06", "totalCount":"13" }, { "Date":"2015-03-07", "totalCount":"5" }, { "Date":"2015-03-08", "totalCount":"7" }, { "Date":"2015-03-09", "totalCount":"6" }, { "Date":"2015-03-10", "totalCount":"11" }, { "Date":"2015-03-11", "totalCount":"3" }, { "Date":"2015-03-12", "totalCount":"8" }, { "Date":"2015-03-13", "totalCount":"5" }, { "Date":"2015-03-14", "totalCount":"10" }, { "Date":"2015-03-15", "totalCount":"5" }, { "Date":"2015-03-16", "totalCount":"5" }, { "Date":"2015-03-17", "totalCount":"7" }, { "Date":"2015-03-18", "totalCount":"4" }, { "Date":"2015-03-19", "totalCount":"4" }, { "Date":"2015-03-20", "totalCount":"6" }, { "Date":"2015-03-21", "totalCount":"6" }, { "Date":"2015-03-22", "totalCount":"2" }, { "Date":"2015-03-23", "totalCount":"3" }, { "Date":"2015-03-24", "totalCount":"7" }, { "Date":"2015-03-25", "totalCount":"5" }, { "Date":"2015-03-26", "totalCount":"2" }, { "Date":"2015-03-27", "totalCount":"2" }, { "Date":"2015-03-28", "totalCount":"4" }, { "Date":"2015-03-29", "totalCount":"3" }, { "Date":"2015-03-30", "totalCount":"3" }, { "Date":"2015-03-31", "totalCount":"1" }, { "Date":"2015-04-01", "totalCount":"3" }, { "Date":"2015-04-02", "totalCount":"5" }, { "Date":"2015-04-03", "totalCount":"5" }, { "Date":"2015-04-04", "totalCount":"3" }, { "Date":"2015-04-05", "totalCount":"4" }, { "Date":"2015-04-06", "totalCount":"2" }, { "Date":"2015-04-07", "totalCount":"4" }, { "Date":"2015-04-08", "totalCount":"7" }, { "Date":"2015-04-09", "totalCount":"5" }, { "Date":"2015-04-10", "totalCount":"3" }, { "Date":"2015-04-11", "totalCount":"7" }, { "Date":"2015-04-12", "totalCount":"5" }, { "Date":"2015-04-13", "totalCount":"12" }, { "Date":"2015-04-14", "totalCount":"5" }, { "Date":"2015-04-15", "totalCount":"7" }, { "Date":"2015-04-16", "totalCount":"5" }, { "Date":"2015-04-17", "totalCount":"6" }, { "Date":"2015-04-18", "totalCount":"6" }, { "Date":"2015-04-19", "totalCount":"14" }, { "Date":"2015-04-20", "totalCount":"10" }, { "Date":"2015-04-21", "totalCount":"10" }, { "Date":"2015-04-22", "totalCount":"4" }, { "Date":"2015-04-23", "totalCount":"7" }, { "Date":"2015-04-24", "totalCount":"8" } ]'); var_dump($json);
based on krtp6
Output for 5.2.0 - 7.2.0
array(80) { [0]=> object(stdClass)#1 (2) { ["Date"]=> string(10) "2014-12-29" ["totalCount"]=> string(1) "1" } [1]=> object(stdClass)#2 (2) { ["Date"]=> string(10) "2015-02-05" ["totalCount"]=> string(3) "116" } [2]=> object(stdClass)#3 (2) { ["Date"]=> string(10) "2015-02-06" ["totalCount"]=> string(1) "7" } [3]=> object(stdClass)#4 (2) { ["Date"]=> string(10) "2015-02-07" ["totalCount"]=> string(1) "5" } [4]=> object(stdClass)#5 (2) { ["Date"]=> string(10) "2015-02-08" ["totalCount"]=> string(2) "16" } [5]=> object(stdClass)#6 (2) { ["Date"]=> string(10) "2015-02-09" ["totalCount"]=> string(2) "39" } [6]=> object(stdClass)#7 (2) { ["Date"]=> string(10) "2015-02-10" ["totalCount"]=> string(2) "29" } [7]=> object(stdClass)#8 (2) { ["Date"]=> string(10) "2015-02-11" ["totalCount"]=> string(1) "7" } [8]=> object(stdClass)#9 (2) { ["Date"]=> string(10) "2015-02-12" ["totalCount"]=> string(2) "14" } [9]=> object(stdClass)#10 (2) { ["Date"]=> string(10) "2015-02-13" ["totalCount"]=> string(2) "16" } [10]=> object(stdClass)#11 (2) { ["Date"]=> string(10) "2015-02-14" ["totalCount"]=> string(2) "12" } [11]=> object(stdClass)#12 (2) { ["Date"]=> string(10) "2015-02-15" ["totalCount"]=> string(1) "7" } [12]=> object(stdClass)#13 (2) { ["Date"]=> string(10) "2015-02-16" ["totalCount"]=> string(1) "1" } [13]=> object(stdClass)#14 (2) { ["Date"]=> string(10) "2015-02-17" ["totalCount"]=> string(1) "8" } [14]=> object(stdClass)#15 (2) { ["Date"]=> string(10) "2015-02-18" ["totalCount"]=> string(2) "25" } [15]=> object(stdClass)#16 (2) { ["Date"]=> string(10) "2015-02-19" ["totalCount"]=> string(2) "17" } [16]=> object(stdClass)#17 (2) { ["Date"]=> string(10) "2015-02-20" ["totalCount"]=> string(2) "15" } [17]=> object(stdClass)#18 (2) { ["Date"]=> string(10) "2015-02-21" ["totalCount"]=> string(2) "10" } [18]=> object(stdClass)#19 (2) { ["Date"]=> string(10) "2015-02-22" ["totalCount"]=> string(1) "7" } [19]=> object(stdClass)#20 (2) { ["Date"]=> string(10) "2015-02-23" ["totalCount"]=> string(1) "8" } [20]=> object(stdClass)#21 (2) { ["Date"]=> string(10) "2015-02-24" ["totalCount"]=> string(2) "17" } [21]=> object(stdClass)#22 (2) { ["Date"]=> string(10) "2015-02-25" ["totalCount"]=> string(1) "3" } [22]=> object(stdClass)#23 (2) { ["Date"]=> string(10) "2015-02-26" ["totalCount"]=> string(1) "3" } [23]=> object(stdClass)#24 (2) { ["Date"]=> string(10) "2015-02-27" ["totalCount"]=> string(1) "2" } [24]=> object(stdClass)#25 (2) { ["Date"]=> string(10) "2015-02-28" ["totalCount"]=> string(1) "1" } [25]=> object(stdClass)#26 (2) { ["Date"]=> string(10) "2015-03-01" ["totalCount"]=> string(1) "3" } [26]=> object(stdClass)#27 (2) { ["Date"]=> string(10) "2015-03-02" ["totalCount"]=> string(2) "10" } [27]=> object(stdClass)#28 (2) { ["Date"]=> string(10) "2015-03-03" ["totalCount"]=> string(1) "1" } [28]=> object(stdClass)#29 (2) { ["Date"]=> string(10) "2015-03-04" ["totalCount"]=> string(1) "9" } [29]=> object(stdClass)#30 (2) { ["Date"]=> string(10) "2015-03-05" ["totalCount"]=> string(1) "3" } [30]=> object(stdClass)#31 (2) { ["Date"]=> string(10) "2015-03-06" ["totalCount"]=> string(2) "13" } [31]=> object(stdClass)#32 (2) { ["Date"]=> string(10) "2015-03-07" ["totalCount"]=> string(1) "5" } [32]=> object(stdClass)#33 (2) { ["Date"]=> string(10) "2015-03-08" ["totalCount"]=> string(1) "7" } [33]=> object(stdClass)#34 (2) { ["Date"]=> string(10) "2015-03-09" ["totalCount"]=> string(1) "6" } [34]=> object(stdClass)#35 (2) { ["Date"]=> string(10) "2015-03-10" ["totalCount"]=> string(2) "11" } [35]=> object(stdClass)#36 (2) { ["Date"]=> string(10) "2015-03-11" ["totalCount"]=> string(1) "3" } [36]=> object(stdClass)#37 (2) { ["Date"]=> string(10) "2015-03-12" ["totalCount"]=> string(1) "8" } [37]=> object(stdClass)#38 (2) { ["Date"]=> string(10) "2015-03-13" ["totalCount"]=> string(1) "5" } [38]=> object(stdClass)#39 (2) { ["Date"]=> string(10) "2015-03-14" ["totalCount"]=> string(2) "10" } [39]=> object(stdClass)#40 (2) { ["Date"]=> string(10) "2015-03-15" ["totalCount"]=> string(1) "5" } [40]=> object(stdClass)#41 (2) { ["Date"]=> string(10) "2015-03-16" ["totalCount"]=> string(1) "5" } [41]=> object(stdClass)#42 (2) { ["Date"]=> string(10) "2015-03-17" ["totalCount"]=> string(1) "7" } [42]=> object(stdClass)#43 (2) { ["Date"]=> string(10) "2015-03-18" ["totalCount"]=> string(1) "4" } [43]=> object(stdClass)#44 (2) { ["Date"]=> string(10) "2015-03-19" ["totalCount"]=> string(1) "4" } [44]=> object(stdClass)#45 (2) { ["Date"]=> string(10) "2015-03-20" ["totalCount"]=> string(1) "6" } [45]=> object(stdClass)#46 (2) { ["Date"]=> string(10) "2015-03-21" ["totalCount"]=> string(1) "6" } [46]=> object(stdClass)#47 (2) { ["Date"]=> string(10) "2015-03-22" ["totalCount"]=> string(1) "2" } [47]=> object(stdClass)#48 (2) { ["Date"]=> string(10) "2015-03-23" ["totalCount"]=> string(1) "3" } [48]=> object(stdClass)#49 (2) { ["Date"]=> string(10) "2015-03-24" ["totalCount"]=> string(1) "7" } [49]=> object(stdClass)#50 (2) { ["Date"]=> string(10) "2015-03-25" ["totalCount"]=> string(1) "5" } [50]=> object(stdClass)#51 (2) { ["Date"]=> string(10) "2015-03-26" ["totalCount"]=> string(1) "2" } [51]=> object(stdClass)#52 (2) { ["Date"]=> string(10) "2015-03-27" ["totalCount"]=> string(1) "2" } [52]=> object(stdClass)#53 (2) { ["Date"]=> string(10) "2015-03-28" ["totalCount"]=> string(1) "4" } [53]=> object(stdClass)#54 (2) { ["Date"]=> string(10) "2015-03-29" ["totalCount"]=> string(1) "3" } [54]=> object(stdClass)#55 (2) { ["Date"]=> string(10) "2015-03-30" ["totalCount"]=> string(1) "3" } [55]=> object(stdClass)#56 (2) { ["Date"]=> string(10) "2015-03-31" ["totalCount"]=> string(1) "1" } [56]=> object(stdClass)#57 (2) { ["Date"]=> string(10) "2015-04-01" ["totalCount"]=> string(1) "3" } [57]=> object(stdClass)#58 (2) { ["Date"]=> string(10) "2015-04-02" ["totalCount"]=> string(1) "5" } [58]=> object(stdClass)#59 (2) { ["Date"]=> string(10) "2015-04-03" ["totalCount"]=> string(1) "5" } [59]=> object(stdClass)#60 (2) { ["Date"]=> string(10) "2015-04-04" ["totalCount"]=> string(1) "3" } [60]=> object(stdClass)#61 (2) { ["Date"]=> string(10) "2015-04-05" ["totalCount"]=> string(1) "4" } [61]=> object(stdClass)#62 (2) { ["Date"]=> string(10) "2015-04-06" ["totalCount"]=> string(1) "2" } [62]=> object(stdClass)#63 (2) { ["Date"]=> string(10) "2015-04-07" ["totalCount"]=> string(1) "4" } [63]=> object(stdClass)#64 (2) { ["Date"]=> string(10) "2015-04-08" ["totalCount"]=> string(1) "7" } [64]=> object(stdClass)#65 (2) { ["Date"]=> string(10) "2015-04-09" ["totalCount"]=> string(1) "5" } [65]=> object(stdClass)#66 (2) { ["Date"]=> string(10) "2015-04-10" ["totalCount"]=> string(1) "3" } [66]=> object(stdClass)#67 (2) { ["Date"]=> string(10) "2015-04-11" ["totalCount"]=> string(1) "7" } [67]=> object(stdClass)#68 (2) { ["Date"]=> string(10) "2015-04-12" ["totalCount"]=> string(1) "5" } [68]=> object(stdClass)#69 (2) { ["Date"]=> string(10) "2015-04-13" ["totalCount"]=> string(2) "12" } [69]=> object(stdClass)#70 (2) { ["Date"]=> string(10) "2015-04-14" ["totalCount"]=> string(1) "5" } [70]=> object(stdClass)#71 (2) { ["Date"]=> string(10) "2015-04-15" ["totalCount"]=> string(1) "7" } [71]=> object(stdClass)#72 (2) { ["Date"]=> string(10) "2015-04-16" ["totalCount"]=> string(1) "5" } [72]=> object(stdClass)#73 (2) { ["Date"]=> string(10) "2015-04-17" ["totalCount"]=> string(1) "6" } [73]=> object(stdClass)#74 (2) { ["Date"]=> string(10) "2015-04-18" ["totalCount"]=> string(1) "6" } [74]=> object(stdClass)#75 (2) { ["Date"]=> string(10) "2015-04-19" ["totalCount"]=> string(2) "14" } [75]=> object(stdClass)#76 (2) { ["Date"]=> string(10) "2015-04-20" ["totalCount"]=> string(2) "10" } [76]=> object(stdClass)#77 (2) { ["Date"]=> string(10) "2015-04-21" ["totalCount"]=> string(2) "10" } [77]=> object(stdClass)#78 (2) { ["Date"]=> string(10) "2015-04-22" ["totalCount"]=> string(1) "4" } [78]=> object(stdClass)#79 (2) { ["Date"]=> string(10) "2015-04-23" ["totalCount"]=> string(1) "7" } [79]=> object(stdClass)#80 (2) { ["Date"]=> string(10) "2015-04-24" ["totalCount"]=> string(1) "8" } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/Tn7Un on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/Tn7Un on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/Tn7Un on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/Tn7Un on line 3