3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = array( '3700860004152', '3700860001113', '3700860001199', '3700860000680', '3700860001236', '3700860002196', '3700860002103', '3700860002257', '3700860001861', '3700860005005', '3700860004053', '3700860004251', '3700860003407', '3700860002363', '3700860004022', '3700860002387', '3700860001908', '3700860006019', '3700860001403', '3700860002219', '3700860003254', '3700860001946', '3700860001847', '3700860006088', '3700860003223', '3700860000666', '3700860002080', '3700860002998', '3700860003421', '3700860001984', '3700860005074', '3700860000826', '3700860004299', '3700860001281', '3700860000543', '3700860002912', '3700860003971', '3700860001151', '3700860001113', '3700860004114', '3700860002271', '3700860001250', '3700860001069', '3700860006033', '3700860001045', '3700860001007', '3700860003223', '3700860002950', '3700860001922', '3700860002936', '3700860004961', '3700860004046', '3700860003254', '3700860000543', '3700860002325', '3700860003162', '3700860006132', '3700860003261', '3700860003179', '3700860005029', '3700860000642', '3700860000888', '3700860002301', '3700860001304', '3700860005944', '3700860005562', '3700860000727', '3700860002424', '3700860002042', '3700860001137', '3700860006064', '3700860005968', '3700860004961', '3700860000567', '3700860003551', '3700860001328', '3700860004275', '3700860001960', '3700860005548', '3700860006071', '3700860002165', '3700860003247', '3700860005050', '3700860000789', '3700860002028', '3700860002493', '3700860003186', '3700860005364', '3700860004008', '3700860005463', '3700860000765', '3700860004015', '3700860003889', '3700860000802', '3700860002325', '3700860000963', '3700860005524', '3700860003483', '3700860003551', '3700860000949', '3700860003193', '3700860001809', '3700860004145', '3700860001366', '3700860001847', '3700860002417', '3700860004251', '3700860005067', '3700860006101', '3700860000925', '3700860000567', '3700860002363', '3700860002080', '3700860001380', '3700860001137', '3700860001151', '3700860003889', '3700860000741', '3700860003421', '3700860004985', '3700860002103', '3700860004299', '3700860002004', '3700860003186', '3700860002042', '3700860005548', '3700860005074', '3700860003865', '3700860003469', '3700860002424', '3700860001083', '3700860002530', '3700860002233', '3700860001984', '3700860002196', '3700860002271', '3700860003445', '3700860005968', '3700860001946', '3700860005029', '3700860000802', '3700860003032', '3700860000703', '3700860003230', '3700860006101', '3700860002349', '3700860002301', '3700860003032', '3700860005005', '3700860000604', '3700860000529', '3700860005104', '3700860004237', '3700860003964' ); $a = array(); foreach($t as $k => $v) { $a[$v][] = $k; } print_r($a);
based on Z7C8W
Output for 4.3.0 - 7.2.0
Array ( [3700860004152] => Array ( [0] => 0 ) [3700860001113] => Array ( [0] => 1 [1] => 38 ) [3700860001199] => Array ( [0] => 2 ) [3700860000680] => Array ( [0] => 3 ) [3700860001236] => Array ( [0] => 4 ) [3700860002196] => Array ( [0] => 5 [1] => 134 ) [3700860002103] => Array ( [0] => 6 [1] => 120 ) [3700860002257] => Array ( [0] => 7 ) [3700860001861] => Array ( [0] => 8 ) [3700860005005] => Array ( [0] => 9 [1] => 148 ) [3700860004053] => Array ( [0] => 10 ) [3700860004251] => Array ( [0] => 11 [1] => 106 ) [3700860003407] => Array ( [0] => 12 ) [3700860002363] => Array ( [0] => 13 [1] => 111 ) [3700860004022] => Array ( [0] => 14 ) [3700860002387] => Array ( [0] => 15 ) [3700860001908] => Array ( [0] => 16 ) [3700860006019] => Array ( [0] => 17 ) [3700860001403] => Array ( [0] => 18 ) [3700860002219] => Array ( [0] => 19 ) [3700860003254] => Array ( [0] => 20 [1] => 52 ) [3700860001946] => Array ( [0] => 21 [1] => 138 ) [3700860001847] => Array ( [0] => 22 [1] => 104 ) [3700860006088] => Array ( [0] => 23 ) [3700860003223] => Array ( [0] => 24 [1] => 46 ) [3700860000666] => Array ( [0] => 25 ) [3700860002080] => Array ( [0] => 26 [1] => 112 ) [3700860002998] => Array ( [0] => 27 ) [3700860003421] => Array ( [0] => 28 [1] => 118 ) [3700860001984] => Array ( [0] => 29 [1] => 133 ) [3700860005074] => Array ( [0] => 30 [1] => 126 ) [3700860000826] => Array ( [0] => 31 ) [3700860004299] => Array ( [0] => 32 [1] => 121 ) [3700860001281] => Array ( [0] => 33 ) [3700860000543] => Array ( [0] => 34 [1] => 53 ) [3700860002912] => Array ( [0] => 35 ) [3700860003971] => Array ( [0] => 36 ) [3700860001151] => Array ( [0] => 37 [1] => 115 ) [3700860004114] => Array ( [0] => 39 ) [3700860002271] => Array ( [0] => 40 [1] => 135 ) [3700860001250] => Array ( [0] => 41 ) [3700860001069] => Array ( [0] => 42 ) [3700860006033] => Array ( [0] => 43 ) [3700860001045] => Array ( [0] => 44 ) [3700860001007] => Array ( [0] => 45 ) [3700860002950] => Array ( [0] => 47 ) [3700860001922] => Array ( [0] => 48 ) [3700860002936] => Array ( [0] => 49 ) [3700860004961] => Array ( [0] => 50 [1] => 72 ) [3700860004046] => Array ( [0] => 51 ) [3700860002325] => Array ( [0] => 54 [1] => 94 ) [3700860003162] => Array ( [0] => 55 ) [3700860006132] => Array ( [0] => 56 ) [3700860003261] => Array ( [0] => 57 ) [3700860003179] => Array ( [0] => 58 ) [3700860005029] => Array ( [0] => 59 [1] => 139 ) [3700860000642] => Array ( [0] => 60 ) [3700860000888] => Array ( [0] => 61 ) [3700860002301] => Array ( [0] => 62 [1] => 146 ) [3700860001304] => Array ( [0] => 63 ) [3700860005944] => Array ( [0] => 64 ) [3700860005562] => Array ( [0] => 65 ) [3700860000727] => Array ( [0] => 66 ) [3700860002424] => Array ( [0] => 67 [1] => 129 ) [3700860002042] => Array ( [0] => 68 [1] => 124 ) [3700860001137] => Array ( [0] => 69 [1] => 114 ) [3700860006064] => Array ( [0] => 70 ) [3700860005968] => Array ( [0] => 71 [1] => 137 ) [3700860000567] => Array ( [0] => 73 [1] => 110 ) [3700860003551] => Array ( [0] => 74 [1] => 98 ) [3700860001328] => Array ( [0] => 75 ) [3700860004275] => Array ( [0] => 76 ) [3700860001960] => Array ( [0] => 77 ) [3700860005548] => Array ( [0] => 78 [1] => 125 ) [3700860006071] => Array ( [0] => 79 ) [3700860002165] => Array ( [0] => 80 ) [3700860003247] => Array ( [0] => 81 ) [3700860005050] => Array ( [0] => 82 ) [3700860000789] => Array ( [0] => 83 ) [3700860002028] => Array ( [0] => 84 ) [3700860002493] => Array ( [0] => 85 ) [3700860003186] => Array ( [0] => 86 [1] => 123 ) [3700860005364] => Array ( [0] => 87 ) [3700860004008] => Array ( [0] => 88 ) [3700860005463] => Array ( [0] => 89 ) [3700860000765] => Array ( [0] => 90 ) [3700860004015] => Array ( [0] => 91 ) [3700860003889] => Array ( [0] => 92 [1] => 116 ) [3700860000802] => Array ( [0] => 93 [1] => 140 ) [3700860000963] => Array ( [0] => 95 ) [3700860005524] => Array ( [0] => 96 ) [3700860003483] => Array ( [0] => 97 ) [3700860000949] => Array ( [0] => 99 ) [3700860003193] => Array ( [0] => 100 ) [3700860001809] => Array ( [0] => 101 ) [3700860004145] => Array ( [0] => 102 ) [3700860001366] => Array ( [0] => 103 ) [3700860002417] => Array ( [0] => 105 ) [3700860005067] => Array ( [0] => 107 ) [3700860006101] => Array ( [0] => 108 [1] => 144 ) [3700860000925] => Array ( [0] => 109 ) [3700860001380] => Array ( [0] => 113 ) [3700860000741] => Array ( [0] => 117 ) [3700860004985] => Array ( [0] => 119 ) [3700860002004] => Array ( [0] => 122 ) [3700860003865] => Array ( [0] => 127 ) [3700860003469] => Array ( [0] => 128 ) [3700860001083] => Array ( [0] => 130 ) [3700860002530] => Array ( [0] => 131 ) [3700860002233] => Array ( [0] => 132 ) [3700860003445] => Array ( [0] => 136 ) [3700860003032] => Array ( [0] => 141 [1] => 147 ) [3700860000703] => Array ( [0] => 142 ) [3700860003230] => Array ( [0] => 143 ) [3700860002349] => Array ( [0] => 145 ) [3700860000604] => Array ( [0] => 149 ) [3700860000529] => Array ( [0] => 150 ) [3700860005104] => Array ( [0] => 151 ) [3700860004237] => Array ( [0] => 152 ) [3700860003964] => Array ( [0] => 153 ) )