3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(array_keys(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 }')));
based on PH19P
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_keys() expects parameter 1 to be array, object given in /in/A37rr on line 61
Output for hhvm-3.10.0 - 3.12.0
Warning: array_keys() expects parameter 1 to be an array or collection in /in/A37rr on line 61
Output for 5.2.0 - 5.2.17
Warning: array_keys(): The first argument should be an array in /in/A37rr on line 61
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/A37rr 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/A37rr on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/A37rr 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/A37rr on line 2