3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode(/* 0 */ '{ "0" : 3870, "1" : 2580, "2" : 6450, "3" : 3225, "4" : 5160, "5" : 4515, "6" : 5805, "7" : 9675, "8" : 7095, "9" : 10320, "10" : 9030, "11" : 7740, "12" : 8385, "13" : 12900, "14" : 1290, "15" : 0, "16" : 10965, "17" : 15480, "18" : 5960, "19" : 1935, "20" : 4470, "21" : 5215, "22" : 3725, "23" : 2980, "24" : 11610, "25" : 12255, "26" : 2258, "27" : 5483, "28" : 2235, "29" : 7450, "30" : 1490, "31" : 4193, "32" : 6705, "33" : 5588, "34" : 7823, "35" : 12665, "36" : 8940, "37" : 8195, "38" : 323, "39" : 16390, "40" : 9685, "41" : 2903, "42" : 10430, "43" : 13545, "44" : 4843, "45" : 15645, "46" : 11920, "47" : 373, "48" : 13410, "49" : 2608, "50" : 8568, "51" : 4838, "52" : 4098, "53" : 11175, "54" : 14155, "55" : 14900, "56" : 745 }'));
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
object(stdClass)#1 (57) { ["0"]=> int(3870) ["1"]=> int(2580) ["2"]=> int(6450) ["3"]=> int(3225) ["4"]=> int(5160) ["5"]=> int(4515) ["6"]=> int(5805) ["7"]=> int(9675) ["8"]=> int(7095) ["9"]=> int(10320) ["10"]=> int(9030) ["11"]=> int(7740) ["12"]=> int(8385) ["13"]=> int(12900) ["14"]=> int(1290) ["15"]=> int(0) ["16"]=> int(10965) ["17"]=> int(15480) ["18"]=> int(5960) ["19"]=> int(1935) ["20"]=> int(4470) ["21"]=> int(5215) ["22"]=> int(3725) ["23"]=> int(2980) ["24"]=> int(11610) ["25"]=> int(12255) ["26"]=> int(2258) ["27"]=> int(5483) ["28"]=> int(2235) ["29"]=> int(7450) ["30"]=> int(1490) ["31"]=> int(4193) ["32"]=> int(6705) ["33"]=> int(5588) ["34"]=> int(7823) ["35"]=> int(12665) ["36"]=> int(8940) ["37"]=> int(8195) ["38"]=> int(323) ["39"]=> int(16390) ["40"]=> int(9685) ["41"]=> int(2903) ["42"]=> int(10430) ["43"]=> int(13545) ["44"]=> int(4843) ["45"]=> int(15645) ["46"]=> int(11920) ["47"]=> int(373) ["48"]=> int(13410) ["49"]=> int(2608) ["50"]=> int(8568) ["51"]=> int(4838) ["52"]=> int(4098) ["53"]=> int(11175) ["54"]=> int(14155) ["55"]=> int(14900) ["56"]=> int(745) }
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/cHsJc on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/cHsJc on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/cHsJc on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/cHsJc on line 2

preferences:
219.25 ms | 401 KiB | 327 Q