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; } $startTimeMerge = microtime(true); $map = array_merge($classmap1, $classmap2); $endTimeMerge = microtime(true); $startTimeReplace = microtime(true); $map = array_replace($classmap1, $classmap2); $endTimeReplace = microtime(true); $startTimePlus = microtime(true); $map = $classmap1 + $classmap2; $endTimePlus = microtime(true); $startTimeForeach = microtime(true); foreach ($classmap2 as $k => $v) { $classmap1[$k] = $v; } $endTimeForeach = microtime(true); echo "array_merge - " . (($endTimeMerge - $startTimeMerge)*1000) ." microseconds<br />\n"; echo "array_replace - " . (($endTimeReplace - $startTimeReplace)*1000) ." microseconds<br />\n"; echo "array + array - " . (($endTimePlus - $startTimePlus)*1000) ." microseconds<br />\n"; echo "foreach - " . (($endTimeForeach - $startTimeForeach)*1000) ." microseconds<br />\n";
Output for 7.1.0
array_merge - 0.6248950958252 microseconds<br /> array_replace - 0.5800724029541 microseconds<br /> array + array - 0.53286552429199 microseconds<br /> foreach - 0.67901611328125 microseconds<br />
Output for 7.0.14
array_merge - 0.58412551879883 microseconds<br /> array_replace - 0.68306922912598 microseconds<br /> array + array - 0.55694580078125 microseconds<br /> foreach - 0.60892105102539 microseconds<br />
Output for 7.0.10
array_merge - 0.63300132751465 microseconds<br /> array_replace - 0.5500316619873 microseconds<br /> array + array - 0.50711631774902 microseconds<br /> foreach - 0.45394897460938 microseconds<br />
Output for 7.0.9
array_merge - 0.90503692626953 microseconds<br /> array_replace - 0.82206726074219 microseconds<br /> array + array - 0.762939453125 microseconds<br /> foreach - 0.68211555480957 microseconds<br />
Output for 7.0.8
array_merge - 0.85687637329102 microseconds<br /> array_replace - 0.77700614929199 microseconds<br /> array + array - 0.77199935913086 microseconds<br /> foreach - 0.64611434936523 microseconds<br />
Output for 7.0.7
array_merge - 16.79801940918 microseconds<br /> array_replace - 0.90408325195312 microseconds<br /> array + array - 0.80204010009766 microseconds<br /> foreach - 0.72598457336426 microseconds<br />
Output for 7.0.6
array_merge - 0.9310245513916 microseconds<br /> array_replace - 0.83112716674805 microseconds<br /> array + array - 0.80299377441406 microseconds<br /> foreach - 0.72002410888672 microseconds<br />
Output for 7.0.5
array_merge - 0.69904327392578 microseconds<br /> array_replace - 0.65088272094727 microseconds<br /> array + array - 0.62203407287598 microseconds<br /> foreach - 0.51093101501465 microseconds<br />
Output for 7.0.4
array_merge - 0.83684921264648 microseconds<br /> array_replace - 0.97012519836426 microseconds<br /> array + array - 0.7779598236084 microseconds<br /> foreach - 0.64897537231445 microseconds<br />
Output for 7.0.3
array_merge - 0.80394744873047 microseconds<br /> array_replace - 0.90718269348145 microseconds<br /> array + array - 0.68283081054688 microseconds<br /> foreach - 0.62203407287598 microseconds<br />
Output for 7.0.2
array_merge - 0.62298774719238 microseconds<br /> array_replace - 0.69808959960938 microseconds<br /> array + array - 0.55503845214844 microseconds<br /> foreach - 0.54693222045898 microseconds<br />
Output for 7.0.1
array_merge - 0.45084953308105 microseconds<br /> array_replace - 0.52618980407715 microseconds<br /> array + array - 0.42080879211426 microseconds<br /> foreach - 0.40602684020996 microseconds<br />
Output for 7.0.0
array_merge - 0.62394142150879 microseconds<br /> array_replace - 0.72193145751953 microseconds<br /> array + array - 0.60319900512695 microseconds<br /> foreach - 0.6108283996582 microseconds<br />
Output for hhvm-3.12.0
array_merge - 0.98800659179688 microseconds<br /> array_replace - 1.6191005706787 microseconds<br /> array + array - 0.33402442932129 microseconds<br /> foreach - 1.025915145874 microseconds<br />
Output for hhvm-3.10.0
array_merge - 1.4750957489014 microseconds<br /> array_replace - 2.5110244750977 microseconds<br /> array + array - 0.47612190246582 microseconds<br /> foreach - 2.3870468139648 microseconds<br />
Output for 5.6.28
array_merge - 2.5269985198975 microseconds<br /> array_replace - 2.7821063995361 microseconds<br /> array + array - 2.4349689483643 microseconds<br /> foreach - 2.2680759429932 microseconds<br />
Output for 5.6.25
array_merge - 2.349853515625 microseconds<br /> array_replace - 2.6369094848633 microseconds<br /> array + array - 2.3198127746582 microseconds<br /> foreach - 2.1231174468994 microseconds<br />
Output for 5.6.24
array_merge - 2.5269985198975 microseconds<br /> array_replace - 2.7251243591309 microseconds<br /> array + array - 2.1460056304932 microseconds<br /> foreach - 1.7900466918945 microseconds<br />
Output for 5.6.23
array_merge - 2.579927444458 microseconds<br /> array_replace - 2.7830600738525 microseconds<br /> array + array - 2.424955368042 microseconds<br /> foreach - 2.1030902862549 microseconds<br />
Output for 5.6.22
array_merge - 3.5791397094727 microseconds<br /> array_replace - 2.3438930511475 microseconds<br /> array + array - 2.0020008087158 microseconds<br /> foreach - 1.7530918121338 microseconds<br />
Output for 5.6.21
array_merge - 2.4640560150146 microseconds<br /> array_replace - 2.5548934936523 microseconds<br /> array + array - 2.1371841430664 microseconds<br /> foreach - 1.7859935760498 microseconds<br />
Output for 5.6.20
array_merge - 2.3531913757324 microseconds<br /> array_replace - 2.7649402618408 microseconds<br /> array + array - 2.284049987793 microseconds<br /> foreach - 1.9121170043945 microseconds<br />
Output for 5.6.19
array_merge - 2.0310878753662 microseconds<br /> array_replace - 2.2499561309814 microseconds<br /> array + array - 1.9090175628662 microseconds<br /> foreach - 1.6241073608398 microseconds<br />
Output for 5.6.18
array_merge - 2.6001930236816 microseconds<br /> array_replace - 2.8808116912842 microseconds<br /> array + array - 2.4271011352539 microseconds<br /> foreach - 2.0430088043213 microseconds<br />
Output for 5.6.17
array_merge - 2.1598339080811 microseconds<br /> array_replace - 2.9551982879639 microseconds<br /> array + array - 2.1970272064209 microseconds<br /> foreach - 1.8439292907715 microseconds<br />
Output for 5.6.16
array_merge - 2.5920867919922 microseconds<br /> array_replace - 2.6988983154297 microseconds<br /> array + array - 2.3300647735596 microseconds<br /> foreach - 2.0630359649658 microseconds<br />
Output for 5.6.15
array_merge - 2.5289058685303 microseconds<br /> array_replace - 2.5851726531982 microseconds<br /> array + array - 2.2778511047363 microseconds<br /> foreach - 2.0651817321777 microseconds<br />
Output for 5.6.14
array_merge - 1.9230842590332 microseconds<br /> array_replace - 2.363920211792 microseconds<br /> array + array - 1.9681453704834 microseconds<br /> foreach - 1.5609264373779 microseconds<br />
Output for 5.6.13
array_merge - 2.2170543670654 microseconds<br /> array_replace - 2.683162689209 microseconds<br /> array + array - 2.2039413452148 microseconds<br /> foreach - 1.9969940185547 microseconds<br />
Output for 5.6.12
array_merge - 2.5930404663086 microseconds<br /> array_replace - 2.9170513153076 microseconds<br /> array + array - 2.4588108062744 microseconds<br /> foreach - 2.1250247955322 microseconds<br />
Output for 5.6.11
array_merge - 2.3329257965088 microseconds<br /> array_replace - 2.8800964355469 microseconds<br /> array + array - 2.5861263275146 microseconds<br /> foreach - 2.0020008087158 microseconds<br />
Output for 5.6.10
array_merge - 1.9521713256836 microseconds<br /> array_replace - 2.2480487823486 microseconds<br /> array + array - 1.8680095672607 microseconds<br /> foreach - 1.7170906066895 microseconds<br />
Output for 5.6.9
array_merge - 2.8080940246582 microseconds<br /> array_replace - 3.101110458374 microseconds<br /> array + array - 2.5410652160645 microseconds<br /> foreach - 2.2389888763428 microseconds<br />
Output for 5.6.8
array_merge - 2.5339126586914 microseconds<br /> array_replace - 3.2157897949219 microseconds<br /> array + array - 2.8469562530518 microseconds<br /> foreach - 2.2048950195312 microseconds<br />
Output for 5.6.7
array_merge - 1.8470287322998 microseconds<br /> array_replace - 2.0129680633545 microseconds<br /> array + array - 1.7480850219727 microseconds<br /> foreach - 1.4839172363281 microseconds<br />
Output for 5.6.6
array_merge - 1.9810199737549 microseconds<br /> array_replace - 2.0020008087158 microseconds<br /> array + array - 1.7580986022949 microseconds<br /> foreach - 1.474142074585 microseconds<br />
Output for 5.6.5
array_merge - 1.9159317016602 microseconds<br /> array_replace - 2.1770000457764 microseconds<br /> array + array - 2.086877822876 microseconds<br /> foreach - 1.7290115356445 microseconds<br />
Output for 5.6.4
array_merge - 2.1660327911377 microseconds<br /> array_replace - 2.3870468139648 microseconds<br /> array + array - 2.1820068359375 microseconds<br /> foreach - 1.8749237060547 microseconds<br />
Output for 5.6.3
array_merge - 2.6359558105469 microseconds<br /> array_replace - 2.9048919677734 microseconds<br /> array + array - 2.3059844970703 microseconds<br /> foreach - 2.1700859069824 microseconds<br />
Output for 5.6.2
array_merge - 1.8379688262939 microseconds<br /> array_replace - 2.0260810852051 microseconds<br /> array + array - 1.7368793487549 microseconds<br /> foreach - 1.6689300537109 microseconds<br />
Output for 5.6.1
array_merge - 2.4359226226807 microseconds<br /> array_replace - 2.8371810913086 microseconds<br /> array + array - 2.3651123046875 microseconds<br /> foreach - 1.5819072723389 microseconds<br />
Output for 5.6.0
array_merge - 2.8181076049805 microseconds<br /> array_replace - 3.2539367675781 microseconds<br /> array + array - 2.936840057373 microseconds<br /> foreach - 3.0488967895508 microseconds<br />
Output for 5.5.38
array_merge - 2.5582313537598 microseconds<br /> array_replace - 2.424955368042 microseconds<br /> array + array - 2.0699501037598 microseconds<br /> foreach - 1.7049312591553 microseconds<br />
Output for 5.5.37
array_merge - 2.6280879974365 microseconds<br /> array_replace - 3.1030178070068 microseconds<br /> array + array - 2.8431415557861 microseconds<br /> foreach - 2.363920211792 microseconds<br />
Output for 5.5.36
array_merge - 2.3438930511475 microseconds<br /> array_replace - 2.6161670684814 microseconds<br /> array + array - 2.284049987793 microseconds<br /> foreach - 2.2220611572266 microseconds<br />
Output for 5.5.35
array_merge - 2.6400089263916 microseconds<br /> array_replace - 3.2811164855957 microseconds<br /> array + array - 2.8820037841797 microseconds<br /> foreach - 2.3329257965088 microseconds<br />
Output for 5.5.34
array_merge - 2.2130012512207 microseconds<br /> array_replace - 2.8162002563477 microseconds<br /> array + array - 2.5219917297363 microseconds<br /> foreach - 2.0020008087158 microseconds<br />
Output for 5.5.33
array_merge - 2.0530223846436 microseconds<br /> array_replace - 2.2130012512207 microseconds<br /> array + array - 1.8820762634277 microseconds<br /> foreach - 1.633882522583 microseconds<br />
Output for 5.5.32
array_merge - 2.3839473724365 microseconds<br /> array_replace - 2.446174621582 microseconds<br /> array + array - 2.0120143890381 microseconds<br /> foreach - 2.0930767059326 microseconds<br />
Output for 5.5.31
array_merge - 2.129077911377 microseconds<br /> array_replace - 2.3510456085205 microseconds<br /> array + array - 2.2881031036377 microseconds<br /> foreach - 2.0821094512939 microseconds<br />
Output for 5.5.30
array_merge - 2.5100708007812 microseconds<br /> array_replace - 2.7339458465576 microseconds<br /> array + array - 2.8548240661621 microseconds<br /> foreach - 2.8600692749023 microseconds<br />
Output for 5.5.29
array_merge - 2.7370452880859 microseconds<br /> array_replace - 3.0288696289062 microseconds<br /> array + array - 2.5839805603027 microseconds<br /> foreach - 2.3248195648193 microseconds<br />
Output for 5.5.28
array_merge - 2.3279190063477 microseconds<br /> array_replace - 2.6099681854248 microseconds<br /> array + array - 2.1800994873047 microseconds<br /> foreach - 1.939058303833 microseconds<br />
Output for 5.5.27
array_merge - 2.000093460083 microseconds<br /> array_replace - 2.1960735321045 microseconds<br /> array + array - 1.8877983093262 microseconds<br /> foreach - 1.6529560089111 microseconds<br />
Output for 5.5.26
array_merge - 2.4640560150146 microseconds<br /> array_replace - 3.0970573425293 microseconds<br /> array + array - 2.8431415557861 microseconds<br /> foreach - 2.3159980773926 microseconds<br />
Output for 5.5.25
array_merge - 2.2881031036377 microseconds<br /> array_replace - 2.4068355560303 microseconds<br /> array + array - 2.4619102478027 microseconds<br /> foreach - 1.5580654144287 microseconds<br />
Output for 5.5.24
array_merge - 2.9458999633789 microseconds<br /> array_replace - 3.4921169281006 microseconds<br /> array + array - 3.0550956726074 microseconds<br /> foreach - 2.4929046630859 microseconds<br />
Output for 5.5.23
array_merge - 2.7859210968018 microseconds<br /> array_replace - 3.3750534057617 microseconds<br /> array + array - 2.9001235961914 microseconds<br /> foreach - 2.4631023406982 microseconds<br />
Output for 5.5.22
array_merge - 2.1688938140869 microseconds<br /> array_replace - 2.5780200958252 microseconds<br /> array + array - 1.9979476928711 microseconds<br /> foreach - 1.7070770263672 microseconds<br />
Output for 5.5.21
array_merge - 2.2451877593994 microseconds<br /> array_replace - 2.4158954620361 microseconds<br /> array + array - 2.5629997253418 microseconds<br /> foreach - 2.0229816436768 microseconds<br />
Output for 5.5.20
array_merge - 1.6708374023438 microseconds<br /> array_replace - 1.7988681793213 microseconds<br /> array + array - 1.5561580657959 microseconds<br /> foreach - 1.4598369598389 microseconds<br />
Output for 5.5.19
array_merge - 2.6290416717529 microseconds<br /> array_replace - 3.0159950256348 microseconds<br /> array + array - 2.6509761810303 microseconds<br /> foreach - 2.5119781494141 microseconds<br />
Output for 5.5.18
array_merge - 2.0480155944824 microseconds<br /> array_replace - 2.4089813232422 microseconds<br /> array + array - 1.9588470458984 microseconds<br /> foreach - 1.9841194152832 microseconds<br />
Output for 5.5.16
array_merge - 2.1939277648926 microseconds<br /> array_replace - 2.8998851776123 microseconds<br /> array + array - 2.5739669799805 microseconds<br /> foreach - 1.9619464874268 microseconds<br />
Output for 5.5.15
array_merge - 1.7220973968506 microseconds<br /> array_replace - 2.1719932556152 microseconds<br /> array + array - 1.939058303833 microseconds<br /> foreach - 1.5459060668945 microseconds<br />
Output for 5.5.14
array_merge - 1.9259452819824 microseconds<br /> array_replace - 2.11501121521 microseconds<br /> array + array - 1.8670558929443 microseconds<br /> foreach - 1.6911029815674 microseconds<br />
Output for 5.5.13
array_merge - 2.4759769439697 microseconds<br /> array_replace - 2.6519298553467 microseconds<br /> array + array - 2.3350715637207 microseconds<br /> foreach - 2.251148223877 microseconds<br />
Output for 5.5.12
array_merge - 2.3078918457031 microseconds<br /> array_replace - 3.0040740966797 microseconds<br /> array + array - 2.1300315856934 microseconds<br /> foreach - 1.8470287322998 microseconds<br />
Output for 5.5.11
array_merge - 2.6919841766357 microseconds<br /> array_replace - 3.0930042266846 microseconds<br /> array + array - 2.6168823242188 microseconds<br /> foreach - 2.2149085998535 microseconds<br />
Output for 5.5.10
array_merge - 2.6309490203857 microseconds<br /> array_replace - 2.8340816497803 microseconds<br /> array + array - 2.4819374084473 microseconds<br /> foreach - 2.2470951080322 microseconds<br />
Output for 5.5.9
array_merge - 2.3291110992432 microseconds<br /> array_replace - 2.3500919342041 microseconds<br /> array + array - 1.9378662109375 microseconds<br /> foreach - 1.5678405761719 microseconds<br />
Output for 5.5.8
array_merge - 2.3069381713867 microseconds<br /> array_replace - 2.8290748596191 microseconds<br /> array + array - 2.4361610412598 microseconds<br /> foreach - 1.8799304962158 microseconds<br />
Output for 5.5.7
array_merge - 2.5730133056641 microseconds<br /> array_replace - 2.7070045471191 microseconds<br /> array + array - 2.439022064209 microseconds<br /> foreach - 2.1829605102539 microseconds<br />
Output for 5.5.6
array_merge - 2.3338794708252 microseconds<br /> array_replace - 2.5198459625244 microseconds<br /> array + array - 2.1681785583496 microseconds<br /> foreach - 2.1579265594482 microseconds<br />
Output for 5.5.5
array_merge - 4.84299659729 microseconds<br /> array_replace - 4.5440196990967 microseconds<br /> array + array - 1.7611980438232 microseconds<br /> foreach - 2.0439624786377 microseconds<br />
Output for 5.5.4
array_merge - 3.4198760986328 microseconds<br /> array_replace - 3.331184387207 microseconds<br /> array + array - 1.5659332275391 microseconds<br /> foreach - 1.4581680297852 microseconds<br />
Output for 5.5.3
array_merge - 4.5461654663086 microseconds<br /> array_replace - 4.403829574585 microseconds<br /> array + array - 1.9271373748779 microseconds<br /> foreach - 1.8610954284668 microseconds<br />
Output for 5.5.2
array_merge - 4.7671794891357 microseconds<br /> array_replace - 3.3860206604004 microseconds<br /> array + array - 1.2409687042236 microseconds<br /> foreach - 1.3580322265625 microseconds<br />
Output for 5.5.1
array_merge - 5.0079822540283 microseconds<br /> array_replace - 4.8229694366455 microseconds<br /> array + array - 1.8599033355713 microseconds<br /> foreach - 2.068042755127 microseconds<br />
Output for 5.5.0
array_merge - 3.7450790405273 microseconds<br /> array_replace - 3.4689903259277 microseconds<br /> array + array - 1.3010501861572 microseconds<br /> foreach - 1.4369487762451 microseconds<br />
Output for 5.4.45
array_merge - 4.9219131469727 microseconds<br /> array_replace - 4.7640800476074 microseconds<br /> array + array - 1.8761157989502 microseconds<br /> foreach - 2.1038055419922 microseconds<br />
Output for 5.4.44
array_merge - 4.4848918914795 microseconds<br /> array_replace - 4.3900012969971 microseconds<br /> array + array - 1.6288757324219 microseconds<br /> foreach - 1.8689632415771 microseconds<br />
Output for 5.4.43
array_merge - 5.1538944244385 microseconds<br /> array_replace - 4.8489570617676 microseconds<br /> array + array - 1.8258094787598 microseconds<br /> foreach - 2.079963684082 microseconds<br />
Output for 5.4.42
array_merge - 4.647970199585 microseconds<br /> array_replace - 4.4629573822021 microseconds<br /> array + array - 1.7051696777344 microseconds<br /> foreach - 1.9857883453369 microseconds<br />
Output for 5.4.41
array_merge - 5.0702095031738 microseconds<br /> array_replace - 4.94384765625 microseconds<br /> array + array - 1.8830299377441 microseconds<br /> foreach - 2.0890235900879 microseconds<br />
Output for 5.4.40
array_merge - 3.8390159606934 microseconds<br /> array_replace - 4.0938854217529 microseconds<br /> array + array - 1.5959739685059 microseconds<br /> foreach - 1.8110275268555 microseconds<br />
Output for 5.4.39
array_merge - 5.0299167633057 microseconds<br /> array_replace - 4.6219825744629 microseconds<br /> array + array - 1.6889572143555 microseconds<br /> foreach - 1.7530918121338 microseconds<br />
Output for 5.4.38
array_merge - 3.8068294525146 microseconds<br /> array_replace - 3.7541389465332 microseconds<br /> array + array - 1.3189315795898 microseconds<br /> foreach - 1.427173614502 microseconds<br />
Output for 5.4.37
array_merge - 4.8880577087402 microseconds<br /> array_replace - 5.202054977417 microseconds<br /> array + array - 1.9950866699219 microseconds<br /> foreach - 1.9350051879883 microseconds<br />
Output for 5.4.36
array_merge - 3.4961700439453 microseconds<br /> array_replace - 3.6180019378662 microseconds<br /> array + array - 1.4748573303223 microseconds<br /> foreach - 1.5017986297607 microseconds<br />
Output for 5.4.35
array_merge - 4.6470165252686 microseconds<br /> array_replace - 4.5921802520752 microseconds<br /> array + array - 1.8718242645264 microseconds<br /> foreach - 2.3548603057861 microseconds<br />
Output for 5.4.34
array_merge - 4.845142364502 microseconds<br /> array_replace - 4.6389102935791 microseconds<br /> array + array - 1.7030239105225 microseconds<br /> foreach - 2.0530223846436 microseconds<br />
Output for 5.4.32
array_merge - 4.4279098510742 microseconds<br /> array_replace - 4.8999786376953 microseconds<br /> array + array - 1.8939971923828 microseconds<br /> foreach - 2.0148754119873 microseconds<br />
Output for 5.4.31
array_merge - 5.1720142364502 microseconds<br /> array_replace - 4.7948360443115 microseconds<br /> array + array - 1.6767978668213 microseconds<br /> foreach - 2.0008087158203 microseconds<br />
Output for 5.4.30
array_merge - 3.4959316253662 microseconds<br /> array_replace - 3.3779144287109 microseconds<br /> array + array - 1.1930465698242 microseconds<br /> foreach - 1.3329982757568 microseconds<br />
Output for 5.4.29
array_merge - 3.957986831665 microseconds<br /> array_replace - 3.4210681915283 microseconds<br /> array + array - 1.3258457183838 microseconds<br /> foreach - 1.3999938964844 microseconds<br />
Output for 5.4.28
array_merge - 4.3799877166748 microseconds<br /> array_replace - 3.8862228393555 microseconds<br /> array + array - 1.6379356384277 microseconds<br /> foreach - 1.7690658569336 microseconds<br />
Output for 5.4.27
array_merge - 4.3549537658691 microseconds<br /> array_replace - 4.1539669036865 microseconds<br /> array + array - 1.6028881072998 microseconds<br /> foreach - 1.8301010131836 microseconds<br />
Output for 5.4.26
array_merge - 3.4489631652832 microseconds<br /> array_replace - 3.2999515533447 microseconds<br /> array + array - 1.2691020965576 microseconds<br /> foreach - 1.4200210571289 microseconds<br />
Output for 5.4.25
array_merge - 4.5449733734131 microseconds<br /> array_replace - 5.1350593566895 microseconds<br /> array + array - 1.6100406646729 microseconds<br /> foreach - 1.7988681793213 microseconds<br />
Output for 5.4.24
array_merge - 3.5660266876221 microseconds<br /> array_replace - 3.3400058746338 microseconds<br /> array + array - 1.3079643249512 microseconds<br /> foreach - 1.4209747314453 microseconds<br />
Output for 5.4.23
array_merge - 3.8599967956543 microseconds<br /> array_replace - 4.3258666992188 microseconds<br /> array + array - 1.3799667358398 microseconds<br /> foreach - 1.5909671783447 microseconds<br />
Output for 5.4.22
array_merge - 4.9889087677002 microseconds<br /> array_replace - 4.7910213470459 microseconds<br /> array + array - 1.6670227050781 microseconds<br /> foreach - 1.9600391387939 microseconds<br />
Output for 5.4.21
array_merge - 4.2040348052979 microseconds<br /> array_replace - 4.0709972381592 microseconds<br /> array + array - 1.5652179718018 microseconds<br /> foreach - 1.863956451416 microseconds<br />
Output for 5.4.20
array_merge - 5.0580501556396 microseconds<br /> array_replace - 5.1100254058838 microseconds<br /> array + array - 1.9488334655762 microseconds<br /> foreach - 1.9361972808838 microseconds<br />
Output for 5.4.19
array_merge - 4.8279762268066 microseconds<br /> array_replace - 4.6060085296631 microseconds<br /> array + array - 1.7848014831543 microseconds<br /> foreach - 1.8939971923828 microseconds<br />
Output for 5.4.18
array_merge - 4.8320293426514 microseconds<br /> array_replace - 4.6441555023193 microseconds<br /> array + array - 1.7769336700439 microseconds<br /> foreach - 1.9609928131104 microseconds<br />
Output for 5.4.17
array_merge - 4.4279098510742 microseconds<br /> array_replace - 4.2939186096191 microseconds<br /> array + array - 1.690149307251 microseconds<br /> foreach - 1.8019676208496 microseconds<br />
Output for 5.4.16
array_merge - 4.4589042663574 microseconds<br /> array_replace - 4.5340061187744 microseconds<br /> array + array - 1.5568733215332 microseconds<br /> foreach - 1.7039775848389 microseconds<br />
Output for 5.4.15
array_merge - 3.9429664611816 microseconds<br /> array_replace - 3.7059783935547 microseconds<br /> array + array - 1.3189315795898 microseconds<br /> foreach - 1.4359951019287 microseconds<br />
Output for 5.4.14
array_merge - 4.8961639404297 microseconds<br /> array_replace - 5.1898956298828 microseconds<br /> array + array - 2.234935760498 microseconds<br /> foreach - 1.6419887542725 microseconds<br />
Output for 5.4.13
array_merge - 4.9359798431396 microseconds<br /> array_replace - 4.4939517974854 microseconds<br /> array + array - 1.77001953125 microseconds<br /> foreach - 1.8970966339111 microseconds<br />
Output for 5.4.12
array_merge - 4.580020904541 microseconds<br /> array_replace - 4.5487880706787 microseconds<br /> array + array - 1.6000270843506 microseconds<br /> foreach - 1.6188621520996 microseconds<br />
Output for 5.4.11
array_merge - 4.7500133514404 microseconds<br /> array_replace - 4.5080184936523 microseconds<br /> array + array - 1.6891956329346 microseconds<br /> foreach - 1.8339157104492 microseconds<br />
Output for 5.4.10
array_merge - 4.2212009429932 microseconds<br /> array_replace - 4.7118663787842 microseconds<br /> array + array - 1.9690990447998 microseconds<br /> foreach - 1.7960071563721 microseconds<br />
Output for 5.4.9
array_merge - 4.6648979187012 microseconds<br /> array_replace - 4.7121047973633 microseconds<br /> array + array - 1.8351078033447 microseconds<br /> foreach - 2.094030380249 microseconds<br />
Output for 5.4.8
array_merge - 5.3269863128662 microseconds<br /> array_replace - 5.1400661468506 microseconds<br /> array + array - 1.9500255584717 microseconds<br /> foreach - 2.0930767059326 microseconds<br />
Output for 5.4.7
array_merge - 5.5251121520996 microseconds<br /> array_replace - 4.6401023864746 microseconds<br /> array + array - 1.7268657684326 microseconds<br /> foreach - 1.9898414611816 microseconds<br />
Output for 5.4.6
array_merge - 4.9450397491455 microseconds<br /> array_replace - 4.8480033874512 microseconds<br /> array + array - 1.8529891967773 microseconds<br /> foreach - 2.0129680633545 microseconds<br />
Output for 5.4.5
array_merge - 5.3761005401611 microseconds<br /> array_replace - 5.2299499511719 microseconds<br /> array + array - 2.2690296173096 microseconds<br /> foreach - 2.2540092468262 microseconds<br />
Output for 5.4.4
array_merge - 4.5740604400635 microseconds<br /> array_replace - 4.4689178466797 microseconds<br /> array + array - 1.7108917236328 microseconds<br /> foreach - 1.8711090087891 microseconds<br />
Output for 5.4.3
array_merge - 5.2831172943115 microseconds<br /> array_replace - 5.389928817749 microseconds<br /> array + array - 2.1131038665771 microseconds<br /> foreach - 1.5640258789062 microseconds<br />
Output for 5.4.2
array_merge - 4.3869018554688 microseconds<br /> array_replace - 4.4000148773193 microseconds<br /> array + array - 1.6601085662842 microseconds<br /> foreach - 1.7631053924561 microseconds<br />
Output for 5.4.1
array_merge - 5.8581829071045 microseconds<br /> array_replace - 5.8159828186035 microseconds<br /> array + array - 2.1829605102539 microseconds<br /> foreach - 2.1038055419922 microseconds<br />
Output for 5.4.0
array_merge - 5.6440830230713 microseconds<br /> array_replace - 4.7118663787842 microseconds<br /> array + array - 1.9721984863281 microseconds<br /> foreach - 2.018928527832 microseconds<br />
Output for 5.3.29
array_merge - 3.0848979949951 microseconds<br /> array_replace - 2.7730464935303 microseconds<br /> array + array - 1.3070106506348 microseconds<br /> foreach - 1.6410350799561 microseconds<br />
Output for 5.3.28
array_merge - 4.7898292541504 microseconds<br /> array_replace - 4.0290355682373 microseconds<br /> array + array - 1.802921295166 microseconds<br /> foreach - 2.2671222686768 microseconds<br />
Output for 5.3.27
array_merge - 5.2490234375 microseconds<br /> array_replace - 4.5461654663086 microseconds<br /> array + array - 1.8711090087891 microseconds<br /> foreach - 2.11501121521 microseconds<br />
Output for 5.3.26
array_merge - 3.3109188079834 microseconds<br /> array_replace - 2.9900074005127 microseconds<br /> array + array - 1.2879371643066 microseconds<br /> foreach - 1.4770030975342 microseconds<br />
Output for 5.3.25
array_merge - 3.4160614013672 microseconds<br /> array_replace - 2.9599666595459 microseconds<br /> array + array - 1.3260841369629 microseconds<br /> foreach - 1.5449523925781 microseconds<br />
Output for 5.3.24
array_merge - 3.3080577850342 microseconds<br /> array_replace - 3.0078887939453 microseconds<br /> array + array - 1.3401508331299 microseconds<br /> foreach - 1.4979839324951 microseconds<br />
Output for 5.3.23
array_merge - 4.7221183776855 microseconds<br /> array_replace - 4.6038627624512 microseconds<br /> array + array - 2.1078586578369 microseconds<br /> foreach - 2.2218227386475 microseconds<br />
Output for 5.3.22
array_merge - 3.5369396209717 microseconds<br /> array_replace - 3.0889511108398 microseconds<br /> array + array - 1.349925994873 microseconds<br /> foreach - 1.5320777893066 microseconds<br />
Output for 5.3.21
array_merge - 4.9569606781006 microseconds<br /> array_replace - 4.241943359375 microseconds<br /> array + array - 1.9369125366211 microseconds<br /> foreach - 2.2192001342773 microseconds<br />
Output for 5.3.20
array_merge - 5.0029754638672 microseconds<br /> array_replace - 4.3079853057861 microseconds<br /> array + array - 1.9009113311768 microseconds<br /> foreach - 2.1448135375977 microseconds<br />
Output for 5.3.19
array_merge - 4.9858093261719 microseconds<br /> array_replace - 4.3449401855469 microseconds<br /> array + array - 1.9900798797607 microseconds<br /> foreach - 2.3958683013916 microseconds<br />
Output for 5.3.18
array_merge - 4.6980381011963 microseconds<br /> array_replace - 4.0709972381592 microseconds<br /> array + array - 1.8060207366943 microseconds<br /> foreach - 2.2499561309814 microseconds<br />
Output for 5.3.17
array_merge - 5.6250095367432 microseconds<br /> array_replace - 4.9769878387451 microseconds<br /> array + array - 1.9569396972656 microseconds<br /> foreach - 2.3181438446045 microseconds<br />
Output for 5.3.16
array_merge - 3.8909912109375 microseconds<br /> array_replace - 3.7291049957275 microseconds<br /> array + array - 1.8551349639893 microseconds<br /> foreach - 1.6880035400391 microseconds<br />
Output for 5.3.15
array_merge - 4.2228698730469 microseconds<br /> array_replace - 3.5610198974609 microseconds<br /> array + array - 1.5230178833008 microseconds<br /> foreach - 2.3260116577148 microseconds<br />
Output for 5.3.14
array_merge - 5.3229331970215 microseconds<br /> array_replace - 4.065990447998 microseconds<br /> array + array - 1.7468929290771 microseconds<br /> foreach - 2.1538734436035 microseconds<br />
Output for 5.3.13
array_merge - 4.3880939483643 microseconds<br /> array_replace - 3.6959648132324 microseconds<br /> array + array - 1.6279220581055 microseconds<br /> foreach - 2.0058155059814 microseconds<br />
Output for 5.3.12
array_merge - 5.0458908081055 microseconds<br /> array_replace - 4.6980381011963 microseconds<br /> array + array - 2.0589828491211 microseconds<br /> foreach - 2.2628307342529 microseconds<br />
Output for 5.3.11
array_merge - 4.0910243988037 microseconds<br /> array_replace - 3.5009384155273 microseconds<br /> array + array - 1.5761852264404 microseconds<br /> foreach - 1.878023147583 microseconds<br />
Output for 5.3.10
array_merge - 4.0299892425537 microseconds<br /> array_replace - 3.5250186920166 microseconds<br /> array + array - 1.6109943389893 microseconds<br /> foreach - 1.6989707946777 microseconds<br />
Output for 5.3.9
array_merge - 3.1101703643799 microseconds<br /> array_replace - 2.7549266815186 microseconds<br /> array + array - 1.2400150299072 microseconds<br /> foreach - 1.474142074585 microseconds<br />
Output for 5.3.8
array_merge - 4.3139457702637 microseconds<br /> array_replace - 4.3787956237793 microseconds<br /> array + array - 1.5089511871338 microseconds<br /> foreach - 2.3140907287598 microseconds<br />
Output for 5.3.7
array_merge - 3.4830570220947 microseconds<br /> array_replace - 3.2379627227783 microseconds<br /> array + array - 1.4650821685791 microseconds<br /> foreach - 1.6570091247559 microseconds<br />
Output for 5.3.6
array_merge - 3.9379596710205 microseconds<br /> array_replace - 2.9118061065674 microseconds<br /> array + array - 1.1990070343018 microseconds<br /> foreach - 1.5168190002441 microseconds<br />
Output for 5.3.5
array_merge - 2.924919128418 microseconds<br /> array_replace - 2.8648376464844 microseconds<br /> array + array - 1.3151168823242 microseconds<br /> foreach - 1.5690326690674 microseconds<br />
Output for 5.3.4
array_merge - 4.1759014129639 microseconds<br /> array_replace - 3.3149719238281 microseconds<br /> array + array - 1.8069744110107 microseconds<br /> foreach - 2.0229816436768 microseconds<br />
Output for 5.3.3
array_merge - 3.6108493804932 microseconds<br /> array_replace - 2.7761459350586 microseconds<br /> array + array - 1.2550354003906 microseconds<br /> foreach - 1.5521049499512 microseconds<br />
Output for 5.3.2
array_merge - 4.957914352417 microseconds<br /> array_replace - 4.5311450958252 microseconds<br /> array + array - 2.1860599517822 microseconds<br /> foreach - 2.5219917297363 microseconds<br />
Output for 5.3.1
array_merge - 4.1759014129639 microseconds<br /> array_replace - 3.7310123443604 microseconds<br /> array + array - 1.7478466033936 microseconds<br /> foreach - 2.1259784698486 microseconds<br />
Output for 5.3.0
array_merge - 1.7199516296387 microseconds<br /> array_replace - 1.8301010131836 microseconds<br /> array + array - 1.36399269104 microseconds<br /> foreach - 1.7111301422119 microseconds<br />
Output for 5.0.0 - 5.2.17
Fatal error: Call to undefined function array_replace() in /in/BANT2 on line 19
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_replace() in /in/BANT2 on line 19
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_replace() in /in/BANT2 on line 19
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_replace() in /in/BANT2 on line 19