3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $classmap1 = array(); for ($i=1; $i<=10000; $i++) { $classmap1['a'.$i] = $i+1; } $classmap2 = array(); for ($i=1; $i<=10000; $i++) { $classmap2['b'.$i] = $i+1; } abstract class merging { public static function merge(array &$a, array &$b) { return array_merge($a, $b); } } $startTimeFunc = microtime(true); $am = merging::merge($classmap1, $classmap2); $endTimeFunc = microtime(true); echo "Func took " . (($endTimeFunc - $startTimeFunc)*1000) ." microseconds<br />\n"; //var_dump($am);
Output for 7.1.0
Func took 0.60200691223145 microseconds<br />
Output for 7.0.14
Func took 0.63395500183105 microseconds<br />
Output for 7.0.6
Func took 0.82802772521973 microseconds<br />
Output for 7.0.5
Func took 0.85306167602539 microseconds<br />
Output for 7.0.4
Func took 0.56695938110352 microseconds<br />
Output for 7.0.3
Func took 0.63085556030273 microseconds<br />
Output for 7.0.2
Func took 0.76603889465332 microseconds<br />
Output for 7.0.1
Func took 0.52094459533691 microseconds<br />
Output for 7.0.0
Func took 0.48089027404785 microseconds<br />
Output for 5.6.28
Func took 5.0458908081055 microseconds<br />
Output for 5.6.21
Func took 3.3648014068604 microseconds<br />
Output for 5.6.20
Func took 4.4600963592529 microseconds<br />
Output for 5.6.19
Func took 5.295991897583 microseconds<br />
Output for 5.6.18
Func took 3.5779476165771 microseconds<br />
Output for 5.6.17
Func took 4.1821002960205 microseconds<br />
Output for 5.6.16
Func took 3.6818981170654 microseconds<br />
Output for 5.6.15
Func took 5.4302215576172 microseconds<br />
Output for 5.4.0, 5.6.14
Func took 3.4520626068115 microseconds<br />
Output for 5.6.13
Func took 5.2390098571777 microseconds<br />
Output for 5.6.12
Func took 4.4112205505371 microseconds<br />
Output for 5.6.11
Func took 3.4241676330566 microseconds<br />
Output for 5.6.10
Func took 5.2411556243896 microseconds<br />
Output for 5.6.9
Func took 4.1539669036865 microseconds<br />
Output for 5.6.8
Func took 3.4759044647217 microseconds<br />
Output for 5.6.7
Func took 3.5128593444824 microseconds<br />
Output for 5.6.6
Func took 4.5008659362793 microseconds<br />
Output for 5.6.5
Func took 4.3020248413086 microseconds<br />
Output for 5.6.4
Func took 3.4191608428955 microseconds<br />
Output for 5.6.3
Func took 4.4798851013184 microseconds<br />
Output for 5.6.2
Func took 3.6520957946777 microseconds<br />
Output for 5.6.1
Func took 3.7641525268555 microseconds<br />
Output for 5.6.0
Func took 3.94606590271 microseconds<br />
Output for 5.5.35
Func took 4.0600299835205 microseconds<br />
Output for 5.5.15, 5.5.34
Func took 5.3880214691162 microseconds<br />
Output for 5.5.33
Func took 4.4090747833252 microseconds<br />
Output for 5.5.32
Func took 3.5481452941895 microseconds<br />
Output for 5.5.31
Func took 4.1790008544922 microseconds<br />
Output for 5.5.30
Func took 4.6679973602295 microseconds<br />
Output for 5.5.29
Func took 5.1910877227783 microseconds<br />
Output for 5.5.28
Func took 3.5810470581055 microseconds<br />
Output for 5.5.27
Func took 3.3841133117676 microseconds<br />
Output for 5.5.26
Func took 3.4029483795166 microseconds<br />
Output for 5.5.25
Func took 3.5440921783447 microseconds<br />
Output for 5.5.24
Func took 4.9800872802734 microseconds<br />
Output for 5.5.23
Func took 4.7399997711182 microseconds<br />
Output for 5.5.22
Func took 4.4031143188477 microseconds<br />
Output for 5.5.21
Func took 4.6970844268799 microseconds<br />
Output for 5.5.20
Func took 3.2260417938232 microseconds<br />
Output for 5.5.19
Func took 4.7588348388672 microseconds<br />
Output for 5.5.18
Func took 3.3531188964844 microseconds<br />
Output for 5.5.16
Func took 4.9140453338623 microseconds<br />
Output for 5.5.14
Func took 3.9260387420654 microseconds<br />
Output for 5.5.13
Func took 4.0218830108643 microseconds<br />
Output for 5.5.12
Func took 4.6370029449463 microseconds<br />
Output for 5.5.11
Func took 4.0981769561768 microseconds<br />
Output for 5.5.10
Func took 3.7009716033936 microseconds<br />
Output for 5.5.9
Func took 4.4479370117188 microseconds<br />
Output for 5.5.8
Func took 3.4959316253662 microseconds<br />
Output for 5.3.6, 5.5.7
Func took 3.9689540863037 microseconds<br />
Output for 5.5.6
Func took 3.7000179290771 microseconds<br />
Output for 5.5.5
Func took 4.6868324279785 microseconds<br />
Output for 5.5.4
Func took 4.9679279327393 microseconds<br />
Output for 5.5.3
Func took 5.2239894866943 microseconds<br />
Output for 5.5.2
Func took 3.6239624023438 microseconds<br />
Output for 5.5.1
Func took 5.0511360168457 microseconds<br />
Output for 5.5.0
Func took 5.4008960723877 microseconds<br />
Output for 5.4.45
Func took 6.3669681549072 microseconds<br />
Output for 5.4.44
Func took 5.3489208221436 microseconds<br />
Output for 5.4.43
Func took 4.5819282531738 microseconds<br />
Output for 5.4.42
Func took 3.6008358001709 microseconds<br />
Output for 5.2.6, 5.4.41
Func took 4.7001838684082 microseconds<br />
Output for 5.4.40
Func took 4.9929618835449 microseconds<br />
Output for 5.4.39
Func took 4.3160915374756 microseconds<br />
Output for 5.4.38
Func took 4.0731430053711 microseconds<br />
Output for 5.4.37
Func took 4.1980743408203 microseconds<br />
Output for 5.4.36
Func took 4.6770572662354 microseconds<br />
Output for 5.4.35
Func took 4.6308040618896 microseconds<br />
Output for 5.4.34
Func took 3.8390159606934 microseconds<br />
Output for 5.4.32
Func took 4.8739910125732 microseconds<br />
Output for 5.4.31
Func took 5.2840709686279 microseconds<br />
Output for 5.4.30
Func took 5.59401512146 microseconds<br />
Output for 5.4.29
Func took 3.5290718078613 microseconds<br />
Output for 5.4.28
Func took 3.4680366516113 microseconds<br />
Output for 5.4.27
Func took 4.5859813690186 microseconds<br />
Output for 5.4.26
Func took 5.1658153533936 microseconds<br />
Output for 5.4.25
Func took 5.31005859375 microseconds<br />
Output for 5.3.7, 5.4.24
Func took 5.1488876342773 microseconds<br />
Output for 5.4.23
Func took 5.5990219116211 microseconds<br />
Output for 5.4.22
Func took 3.9329528808594 microseconds<br />
Output for 5.4.21
Func took 3.5691261291504 microseconds<br />
Output for 5.4.20
Func took 3.5860538482666 microseconds<br />
Output for 5.4.19
Func took 3.864049911499 microseconds<br />
Output for 5.4.18
Func took 3.6430358886719 microseconds<br />
Output for 5.4.17
Func took 4.0838718414307 microseconds<br />
Output for 5.4.16
Func took 4.8611164093018 microseconds<br />
Output for 5.4.15
Func took 3.9408206939697 microseconds<br />
Output for 5.4.14
Func took 5.43212890625 microseconds<br />
Output for 5.3.13, 5.4.13
Func took 3.8979053497314 microseconds<br />
Output for 5.4.12
Func took 4.4951438903809 microseconds<br />
Output for 5.4.11
Func took 3.8270950317383 microseconds<br />
Output for 5.4.10
Func took 3.7319660186768 microseconds<br />
Output for 5.4.9
Func took 5.2559375762939 microseconds<br />
Output for 5.4.8
Func took 4.7760009765625 microseconds<br />
Output for 5.4.7
Func took 4.4980049133301 microseconds<br />
Output for 5.4.6
Func took 5.2878856658936 microseconds<br />
Output for 5.4.5
Func took 5.1629543304443 microseconds<br />
Output for 5.4.4
Func took 6.5751075744629 microseconds<br />
Output for 5.4.3
Func took 4.8761367797852 microseconds<br />
Output for 5.4.2
Func took 4.3120384216309 microseconds<br />
Output for 5.4.1
Func took 3.6709308624268 microseconds<br />
Output for 5.3.29
Func took 5.1419734954834 microseconds<br />
Output for 5.3.28
Func took 4.3759346008301 microseconds<br />
Output for 5.3.27
Func took 5.1250457763672 microseconds<br />
Output for 5.3.26
Func took 3.5669803619385 microseconds<br />
Output for 5.3.25
Func took 4.5609474182129 microseconds<br />
Output for 5.3.24
Func took 4.2920112609863 microseconds<br />
Output for 5.3.23
Func took 4.9729347229004 microseconds<br />
Output for 5.3.22
Func took 5.2359104156494 microseconds<br />
Output for 5.3.21
Func took 5.0811767578125 microseconds<br />
Output for 5.3.20
Func took 5.0950050354004 microseconds<br />
Output for 5.3.19
Func took 4.188060760498 microseconds<br />
Output for 5.3.18
Func took 5.1748752593994 microseconds<br />
Output for 5.3.17
Func took 3.6020278930664 microseconds<br />
Output for 5.3.16
Func took 4.5559406280518 microseconds<br />
Output for 5.3.15
Func took 5.0389766693115 microseconds<br />
Output for 5.3.14
Func took 4.533052444458 microseconds<br />
Output for 5.3.12
Func took 4.9419403076172 microseconds<br />
Output for 5.3.11
Func took 3.8061141967773 microseconds<br />
Output for 5.3.10
Func took 5.2900314331055 microseconds<br />
Output for 5.3.9
Func took 5.1999092102051 microseconds<br />
Output for 5.3.8
Func took 4.7550201416016 microseconds<br />
Output for 5.3.5
Func took 4.7330856323242 microseconds<br />
Output for 5.3.4
Func took 4.6579837799072 microseconds<br />
Output for 5.3.3
Func took 3.7479400634766 microseconds<br />
Output for 5.3.2
Func took 4.3978691101074 microseconds<br />
Output for 5.3.1
Func took 5.2828788757324 microseconds<br />
Output for 5.3.0
Func took 5.5630207061768 microseconds<br />
Output for 5.2.17
Func took 4.4188499450684 microseconds<br />
Output for 5.2.16
Func took 5.6660175323486 microseconds<br />
Output for 5.2.15
Func took 3.838062286377 microseconds<br />
Output for 5.2.14
Func took 4.3570995330811 microseconds<br />
Output for 5.2.13
Func took 6.0508251190186 microseconds<br />
Output for 5.2.12
Func took 5.4399967193604 microseconds<br />
Output for 5.2.11
Func took 4.9490928649902 microseconds<br />
Output for 5.2.10
Func took 4.2221546173096 microseconds<br />
Output for 5.2.9
Func took 5.5789947509766 microseconds<br />
Output for 5.2.8
Func took 4.4770240783691 microseconds<br />
Output for 5.2.7
Func took 3.7550926208496 microseconds<br />
Output for 5.2.5
Func took 6.9539546966553 microseconds<br />
Output for 5.2.4
Func took 6.9379806518555 microseconds<br />
Output for 5.2.3
Func took 6.61301612854 microseconds<br />
Output for 5.2.2
Func took 6.3409805297852 microseconds<br />
Output for 5.2.1
Func took 5.3780078887939 microseconds<br />
Output for 5.2.0
Func took 3.4120082855225 microseconds<br />
Output for 5.1.6
Func took 8.1369876861572 microseconds<br />
Output for 5.1.5
Func took 6.4020156860352 microseconds<br />
Output for 5.1.4
Func took 6.850004196167 microseconds<br />
Output for 5.1.3
Func took 7.2150230407715 microseconds<br />
Output for 5.1.2
Func took 7.850170135498 microseconds<br />
Output for 5.1.1
Func took 4.993200302124 microseconds<br />
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/VYSS5 on line 25
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /in/VYSS5 on line 15
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/VYSS5 on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_CLASS in /in/VYSS5 on line 14
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VYSS5 on line 14
Process exited with code 255.