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); $startTimeForeach = microtime(true); foreach ($classmap2 as $k => $v) { $classmap1[$k] = $v; } $endTimeForeach = microtime(true); function amerge(array $a, array $b) { foreach ($b as $key => $value) { if (array_key_exists($key, $a)) { if (is_int($key)) { $a[] = $value; } elseif (is_array($value) && is_array($a[$key])) { $a[$key] = static::merge($a[$key], $value); } else { $a[$key] = $value; } } else { $a[$key] = $value; } } return $a; } $startTimeFunc = microtime(true); amerge($classmap1, $classmap2); $endTimeFunc = microtime(true); echo "Merging took " . (($endTimeMerge - $startTimeMerge)*1000) ." microseconds<br />\n"; echo "Foreach took " . (($endTimeForeach - $startTimeForeach)*1000) ." microseconds<br />\n"; echo "Func took " . (($endTimeFunc - $startTimeFunc)*1000) ." microseconds<br />\n";
Output for hhvm-3.12.0
Merging took 0.85091590881348 microseconds<br /> Foreach took 1.3680458068848 microseconds<br /> Func took 2.2130012512207 microseconds<br />
Output for hhvm-3.10.0
Merging took 1.0950565338135 microseconds<br /> Foreach took 1.6670227050781 microseconds<br /> Func took 3.5369396209717 microseconds<br />
Output for 5.6.25
Merging took 2.0270347595215 microseconds<br /> Foreach took 1.9059181213379 microseconds<br /> Func took 6.2298774719238 microseconds<br />
Output for 5.6.24
Merging took 2.4130344390869 microseconds<br /> Foreach took 2.4909973144531 microseconds<br /> Func took 7.5199604034424 microseconds<br />
Output for 5.6.23
Merging took 2.4089813232422 microseconds<br /> Foreach took 2.3500919342041 microseconds<br /> Func took 7.7331066131592 microseconds<br />
Output for 5.6.22
Merging took 2.2850036621094 microseconds<br /> Foreach took 1.8298625946045 microseconds<br /> Func took 5.9959888458252 microseconds<br />
Output for 5.6.21
Merging took 2.7549266815186 microseconds<br /> Foreach took 2.216100692749 microseconds<br /> Func took 8.0258846282959 microseconds<br />
Output for 5.6.20
Merging took 2.1860599517822 microseconds<br /> Foreach took 2.2900104522705 microseconds<br /> Func took 7.990837097168 microseconds<br />
Output for 5.6.19
Merging took 1.9080638885498 microseconds<br /> Foreach took 1.8289089202881 microseconds<br /> Func took 6.0138702392578 microseconds<br />
Output for 5.6.18
Merging took 2.5811195373535 microseconds<br /> Foreach took 2.6240348815918 microseconds<br /> Func took 8.6910724639893 microseconds<br />
Output for 5.6.17
Merging took 1.9240379333496 microseconds<br /> Foreach took 1.8510818481445 microseconds<br /> Func took 6.4611434936523 microseconds<br />
Output for 5.6.16
Merging took 1.9321441650391 microseconds<br /> Foreach took 1.9769668579102 microseconds<br /> Func took 5.9089660644531 microseconds<br />
Output for 5.6.15
Merging took 2.1510124206543 microseconds<br /> Foreach took 2.1350383758545 microseconds<br /> Func took 6.9200992584229 microseconds<br />
Output for 5.6.14
Merging took 2.2580623626709 microseconds<br /> Foreach took 2.2218227386475 microseconds<br /> Func took 7.3478221893311 microseconds<br />
Output for 5.6.13
Merging took 2.5298595428467 microseconds<br /> Foreach took 2.5310516357422 microseconds<br /> Func took 8.2499980926514 microseconds<br />
Output for 5.6.12
Merging took 1.7578601837158 microseconds<br /> Foreach took 1.7318725585938 microseconds<br /> Func took 5.7361125946045 microseconds<br />
Output for 5.6.11
Merging took 2.3250579833984 microseconds<br /> Foreach took 2.2940635681152 microseconds<br /> Func took 7.6031684875488 microseconds<br />
Output for 5.6.10
Merging took 2.269983291626 microseconds<br /> Foreach took 2.3961067199707 microseconds<br /> Func took 7.9240798950195 microseconds<br />
Output for 5.6.9
Merging took 1.7859935760498 microseconds<br /> Foreach took 1.737117767334 microseconds<br /> Func took 5.7060718536377 microseconds<br />
Output for 5.6.8
Merging took 2.6869773864746 microseconds<br /> Foreach took 2.5160312652588 microseconds<br /> Func took 6.5019130706787 microseconds<br />
Output for 5.6.7
Merging took 2.1748542785645 microseconds<br /> Foreach took 2.2270679473877 microseconds<br /> Func took 7.6138973236084 microseconds<br />
Output for 5.6.6
Merging took 2.6102066040039 microseconds<br /> Foreach took 2.5157928466797 microseconds<br /> Func took 6.9971084594727 microseconds<br />
Output for 5.6.5
Merging took 2.4950504302979 microseconds<br /> Foreach took 2.532958984375 microseconds<br /> Func took 9.0069770812988 microseconds<br />
Output for 5.6.4
Merging took 2.6190280914307 microseconds<br /> Foreach took 3.2169818878174 microseconds<br /> Func took 8.3770751953125 microseconds<br />
Output for 5.6.3
Merging took 2.4220943450928 microseconds<br /> Foreach took 2.3529529571533 microseconds<br /> Func took 8.0809593200684 microseconds<br />
Output for 5.6.2
Merging took 1.6798973083496 microseconds<br /> Foreach took 1.8069744110107 microseconds<br /> Func took 6.3149929046631 microseconds<br />
Output for 5.6.1
Merging took 2.1741390228271 microseconds<br /> Foreach took 2.1870136260986 microseconds<br /> Func took 7.6169967651367 microseconds<br />
Output for 5.6.0
Merging took 3.0219554901123 microseconds<br /> Foreach took 4.0512084960938 microseconds<br /> Func took 13.841867446899 microseconds<br />
Output for 5.5.38
Merging took 2.7108192443848 microseconds<br /> Foreach took 2.7182102203369 microseconds<br /> Func took 9.544849395752 microseconds<br />
Output for 5.5.37
Merging took 2.3460388183594 microseconds<br /> Foreach took 2.3529529571533 microseconds<br /> Func took 7.422924041748 microseconds<br />
Output for 5.5.36
Merging took 1.6930103302002 microseconds<br /> Foreach took 1.6930103302002 microseconds<br /> Func took 5.7399272918701 microseconds<br />
Output for 5.5.35
Merging took 1.7361640930176 microseconds<br /> Foreach took 1.7538070678711 microseconds<br /> Func took 5.8820247650146 microseconds<br />
Output for 5.5.34
Merging took 1.6899108886719 microseconds<br /> Foreach took 1.6710758209229 microseconds<br /> Func took 5.6939125061035 microseconds<br />
Output for 5.5.33
Merging took 2.3438930511475 microseconds<br /> Foreach took 2.4039745330811 microseconds<br /> Func took 8.9859962463379 microseconds<br />
Output for 5.5.32
Merging took 2.626895904541 microseconds<br /> Foreach took 2.6121139526367 microseconds<br /> Func took 8.242130279541 microseconds<br />
Output for 5.5.31
Merging took 1.7318725585938 microseconds<br /> Foreach took 1.7769336700439 microseconds<br /> Func took 6.6449642181396 microseconds<br />
Output for 5.5.30
Merging took 2.5110244750977 microseconds<br /> Foreach took 2.5789737701416 microseconds<br /> Func took 8.5999965667725 microseconds<br />
Output for 5.5.29
Merging took 2.471923828125 microseconds<br /> Foreach took 2.5150775909424 microseconds<br /> Func took 8.2259178161621 microseconds<br />
Output for 5.5.28
Merging took 1.8100738525391 microseconds<br /> Foreach took 1.8019676208496 microseconds<br /> Func took 5.9750080108643 microseconds<br />
Output for 5.5.27
Merging took 2.13623046875 microseconds<br /> Foreach took 2.1710395812988 microseconds<br /> Func took 8.4228515625 microseconds<br />
Output for 5.5.26
Merging took 2.7518272399902 microseconds<br /> Foreach took 2.8038024902344 microseconds<br /> Func took 8.6569786071777 microseconds<br />
Output for 5.5.25
Merging took 2.8848648071289 microseconds<br /> Foreach took 2.8641223907471 microseconds<br /> Func took 8.8331699371338 microseconds<br />
Output for 5.5.24
Merging took 1.845121383667 microseconds<br /> Foreach took 1.8990039825439 microseconds<br /> Func took 6.3998699188232 microseconds<br />
Output for 5.5.23
Merging took 2.3360252380371 microseconds<br /> Foreach took 2.1970272064209 microseconds<br /> Func took 8.0060958862305 microseconds<br />
Output for 5.5.22
Merging took 2.0678043365479 microseconds<br /> Foreach took 2.1641254425049 microseconds<br /> Func took 6.9730281829834 microseconds<br />
Output for 5.5.21
Merging took 2.2399425506592 microseconds<br /> Foreach took 2.0911693572998 microseconds<br /> Func took 6.9370269775391 microseconds<br />
Output for 5.5.20
Merging took 2.316951751709 microseconds<br /> Foreach took 2.2201538085938 microseconds<br /> Func took 7.7438354492188 microseconds<br />
Output for 5.5.19
Merging took 2.734899520874 microseconds<br /> Foreach took 3.1089782714844 microseconds<br /> Func took 9.2310905456543 microseconds<br />
Output for 5.5.18
Merging took 2.8140544891357 microseconds<br /> Foreach took 2.903938293457 microseconds<br /> Func took 8.7480545043945 microseconds<br />
Output for 5.5.16
Merging took 1.784086227417 microseconds<br /> Foreach took 1.5480518341064 microseconds<br /> Func took 5.3339004516602 microseconds<br />
Output for 5.5.15
Merging took 2.2110939025879 microseconds<br /> Foreach took 2.363920211792 microseconds<br /> Func took 7.8299045562744 microseconds<br />
Output for 5.5.14
Merging took 2.6769638061523 microseconds<br /> Foreach took 2.6731491088867 microseconds<br /> Func took 9.5608234405518 microseconds<br />
Output for 5.5.13
Merging took 1.9078254699707 microseconds<br /> Foreach took 1.9659996032715 microseconds<br /> Func took 6.8449974060059 microseconds<br />
Output for 5.5.12
Merging took 2.1259784698486 microseconds<br /> Foreach took 2.1560192108154 microseconds<br /> Func took 7.7240467071533 microseconds<br />
Output for 5.5.11
Merging took 1.8548965454102 microseconds<br /> Foreach took 2.0368099212646 microseconds<br /> Func took 7.2488784790039 microseconds<br />
Output for 5.5.10
Merging took 1.9359588623047 microseconds<br /> Foreach took 2.2690296173096 microseconds<br /> Func took 6.7160129547119 microseconds<br />
Output for 5.5.9
Merging took 2.647876739502 microseconds<br /> Foreach took 2.6648044586182 microseconds<br /> Func took 8.6460113525391 microseconds<br />
Output for 5.5.8
Merging took 2.6481151580811 microseconds<br /> Foreach took 2.6488304138184 microseconds<br /> Func took 8.3818435668945 microseconds<br />
Output for 5.5.7
Merging took 2.234935760498 microseconds<br /> Foreach took 2.2602081298828 microseconds<br /> Func took 9.4468593597412 microseconds<br />
Output for 5.5.6
Merging took 2.1800994873047 microseconds<br /> Foreach took 2.208948135376 microseconds<br /> Func took 7.418155670166 microseconds<br />
Output for 5.5.5
Merging took 4.5099258422852 microseconds<br /> Foreach took 2.0301342010498 microseconds<br /> Func took 7.6451301574707 microseconds<br />
Output for 5.5.4
Merging took 4.6639442443848 microseconds<br /> Foreach took 2.1829605102539 microseconds<br /> Func took 7.7478885650635 microseconds<br />
Output for 5.5.3
Merging took 4.4951438903809 microseconds<br /> Foreach took 1.9030570983887 microseconds<br /> Func took 7.2958469390869 microseconds<br />
Output for 5.5.2
Merging took 4.2979717254639 microseconds<br /> Foreach took 1.7399787902832 microseconds<br /> Func took 6.7911148071289 microseconds<br />
Output for 5.5.1
Merging took 3.8259029388428 microseconds<br /> Foreach took 1.7879009246826 microseconds<br /> Func took 6.7899227142334 microseconds<br />
Output for 5.5.0
Merging took 3.7968158721924 microseconds<br /> Foreach took 1.7850399017334 microseconds<br /> Func took 7.6429843902588 microseconds<br />
Output for 5.4.45
Merging took 5.0439834594727 microseconds<br /> Foreach took 2.4740695953369 microseconds<br /> Func took 8.5821151733398 microseconds<br />
Output for 5.4.44
Merging took 5.0430297851562 microseconds<br /> Foreach took 2.3119449615479 microseconds<br /> Func took 8.0101490020752 microseconds<br />
Output for 5.4.43
Merging took 3.6108493804932 microseconds<br /> Foreach took 1.7590522766113 microseconds<br /> Func took 5.7051181793213 microseconds<br />
Output for 5.4.42
Merging took 4.3220520019531 microseconds<br /> Foreach took 1.9938945770264 microseconds<br /> Func took 7.9050064086914 microseconds<br />
Output for 5.4.41
Merging took 3.5049915313721 microseconds<br /> Foreach took 1.6319751739502 microseconds<br /> Func took 5.5859088897705 microseconds<br />
Output for 5.4.40
Merging took 5.9380531311035 microseconds<br /> Foreach took 2.4540424346924 microseconds<br /> Func took 8.5630416870117 microseconds<br />
Output for 5.4.39
Merging took 4.5759677886963 microseconds<br /> Foreach took 3.3831596374512 microseconds<br /> Func took 6.0968399047852 microseconds<br />
Output for 5.4.38
Merging took 4.788875579834 microseconds<br /> Foreach took 2.2070407867432 microseconds<br /> Func took 7.835865020752 microseconds<br />
Output for 5.4.37
Merging took 6.4280033111572 microseconds<br /> Foreach took 2.3341178894043 microseconds<br /> Func took 9.0270042419434 microseconds<br />
Output for 5.4.36
Merging took 4.626989364624 microseconds<br /> Foreach took 2.0999908447266 microseconds<br /> Func took 7.9100131988525 microseconds<br />
Output for 5.4.35
Merging took 5.3169727325439 microseconds<br /> Foreach took 2.4199485778809 microseconds<br /> Func took 8.2550048828125 microseconds<br />
Output for 5.4.34
Merging took 4.1849613189697 microseconds<br /> Foreach took 2.1209716796875 microseconds<br /> Func took 8.6300373077393 microseconds<br />
Output for 5.4.32
Merging took 5.9499740600586 microseconds<br /> Foreach took 2.140998840332 microseconds<br /> Func took 7.7629089355469 microseconds<br />
Output for 5.4.31
Merging took 4.6432018280029 microseconds<br /> Foreach took 1.8689632415771 microseconds<br /> Func took 6.6840648651123 microseconds<br />
Output for 5.4.30
Merging took 7.6949596405029 microseconds<br /> Foreach took 3.4379959106445 microseconds<br /> Func took 8.1801414489746 microseconds<br />
Output for 5.4.29
Merging took 5.2399635314941 microseconds<br /> Foreach took 2.2859573364258 microseconds<br /> Func took 8.220911026001 microseconds<br />
Output for 5.4.28
Merging took 3.5629272460938 microseconds<br /> Foreach took 1.8160343170166 microseconds<br /> Func took 6.8950653076172 microseconds<br />
Output for 5.4.27
Merging took 3.2808780670166 microseconds<br /> Foreach took 1.6100406646729 microseconds<br /> Func took 5.6531429290771 microseconds<br />
Output for 5.4.26
Merging took 4.8120021820068 microseconds<br /> Foreach took 2.3238658905029 microseconds<br /> Func took 8.1357955932617 microseconds<br />
Output for 5.4.25
Merging took 4.8739910125732 microseconds<br /> Foreach took 2.2821426391602 microseconds<br /> Func took 7.4629783630371 microseconds<br />
Output for 5.4.24
Merging took 3.6439895629883 microseconds<br /> Foreach took 2.7239322662354 microseconds<br /> Func took 11.07382774353 microseconds<br />
Output for 5.4.23
Merging took 5.5010318756104 microseconds<br /> Foreach took 2.8901100158691 microseconds<br /> Func took 7.2109699249268 microseconds<br />
Output for 5.4.22
Merging took 4.6148300170898 microseconds<br /> Foreach took 2.1369457244873 microseconds<br /> Func took 7.1310997009277 microseconds<br />
Output for 5.4.21
Merging took 3.5369396209717 microseconds<br /> Foreach took 1.6109943389893 microseconds<br /> Func took 5.8410167694092 microseconds<br />
Output for 5.4.20
Merging took 3.7670135498047 microseconds<br /> Foreach took 1.7850399017334 microseconds<br /> Func took 6.6070556640625 microseconds<br />
Output for 5.4.19
Merging took 5.424976348877 microseconds<br /> Foreach took 2.3679733276367 microseconds<br /> Func took 8.4669589996338 microseconds<br />
Output for 5.4.18
Merging took 4.7709941864014 microseconds<br /> Foreach took 2.3529529571533 microseconds<br /> Func took 8.781909942627 microseconds<br />
Output for 5.4.17
Merging took 5.1109790802002 microseconds<br /> Foreach took 2.5420188903809 microseconds<br /> Func took 9.2308521270752 microseconds<br />
Output for 5.4.16
Merging took 8.0769062042236 microseconds<br /> Foreach took 3.8061141967773 microseconds<br /> Func took 8.0289840698242 microseconds<br />
Output for 5.4.15
Merging took 4.9169063568115 microseconds<br /> Foreach took 2.0859241485596 microseconds<br /> Func took 7.8470706939697 microseconds<br />
Output for 5.4.14
Merging took 4.8758983612061 microseconds<br /> Foreach took 2.2051334381104 microseconds<br /> Func took 7.983922958374 microseconds<br />
Output for 5.4.13
Merging took 6.4280033111572 microseconds<br /> Foreach took 2.9261112213135 microseconds<br /> Func took 8.9211463928223 microseconds<br />
Output for 5.4.12
Merging took 4.1449069976807 microseconds<br /> Foreach took 1.7170906066895 microseconds<br /> Func took 6.5970420837402 microseconds<br />
Output for 5.4.11
Merging took 3.568172454834 microseconds<br /> Foreach took 1.5180110931396 microseconds<br /> Func took 5.4409503936768 microseconds<br />
Output for 5.4.10
Merging took 3.2758712768555 microseconds<br /> Foreach took 1.5180110931396 microseconds<br /> Func took 6.2999725341797 microseconds<br />
Output for 5.4.9
Merging took 3.2618045806885 microseconds<br /> Foreach took 1.5511512756348 microseconds<br /> Func took 5.748987197876 microseconds<br />
Output for 5.4.8
Merging took 2.6741027832031 microseconds<br /> Foreach took 1.2109279632568 microseconds<br /> Func took 4.7731399536133 microseconds<br />
Output for 5.4.7
Merging took 3.108024597168 microseconds<br /> Foreach took 1.4569759368896 microseconds<br /> Func took 5.7089328765869 microseconds<br />
Output for 5.4.6
Merging took 3.7121772766113 microseconds<br /> Foreach took 1.5699863433838 microseconds<br /> Func took 5.9399604797363 microseconds<br />
Output for 5.4.5
Merging took 3.1208992004395 microseconds<br /> Foreach took 1.4731884002686 microseconds<br /> Func took 6.7830085754395 microseconds<br />
Output for 5.4.4
Merging took 3.1921863555908 microseconds<br /> Foreach took 1.4688968658447 microseconds<br /> Func took 5.4919719696045 microseconds<br />
Output for 5.4.3
Merging took 3.8409233093262 microseconds<br /> Foreach took 1.8079280853271 microseconds<br /> Func took 6.1120986938477 microseconds<br />
Output for 5.4.2
Merging took 4.5778751373291 microseconds<br /> Foreach took 1.6629695892334 microseconds<br /> Func took 6.0939788818359 microseconds<br />
Output for 5.4.1
Merging took 5.1660537719727 microseconds<br /> Foreach took 2.4728775024414 microseconds<br /> Func took 9.1369152069092 microseconds<br />
Output for 5.4.0
Merging took 3.6149024963379 microseconds<br /> Foreach took 2.8541088104248 microseconds<br /> Func took 7.6360702514648 microseconds<br />
Output for 5.3.29
Merging took 4.1730403900146 microseconds<br /> Foreach took 1.9330978393555 microseconds<br /> Func took 6.7689418792725 microseconds<br />
Output for 5.3.28
Merging took 3.5171508789062 microseconds<br /> Foreach took 1.7008781433105 microseconds<br /> Func took 6.335973739624 microseconds<br />
Output for 5.3.27
Merging took 4.1069984436035 microseconds<br /> Foreach took 2.0520687103271 microseconds<br /> Func took 7.9200267791748 microseconds<br />
Output for 5.3.26
Merging took 4.5008659362793 microseconds<br /> Foreach took 2.316951751709 microseconds<br /> Func took 8.4629058837891 microseconds<br />
Output for 5.3.25
Merging took 4.7719478607178 microseconds<br /> Foreach took 2.3970603942871 microseconds<br /> Func took 8.620023727417 microseconds<br />
Output for 5.3.24
Merging took 5.1500797271729 microseconds<br /> Foreach took 2.4499893188477 microseconds<br /> Func took 9.0270042419434 microseconds<br />
Output for 5.3.23
Merging took 3.8411617279053 microseconds<br /> Foreach took 2.4259090423584 microseconds<br /> Func took 7.4729919433594 microseconds<br />
Output for 5.3.22
Merging took 3.6041736602783 microseconds<br /> Foreach took 1.7099380493164 microseconds<br /> Func took 6.601095199585 microseconds<br />
Output for 5.3.21
Merging took 3.3881664276123 microseconds<br /> Foreach took 1.5878677368164 microseconds<br /> Func took 5.6231021881104 microseconds<br />
Output for 5.3.20
Merging took 4.4288635253906 microseconds<br /> Foreach took 2.9020309448242 microseconds<br /> Func took 11.188983917236 microseconds<br />
Output for 5.3.19
Merging took 3.6361217498779 microseconds<br /> Foreach took 1.6448497772217 microseconds<br /> Func took 6.0379505157471 microseconds<br />
Output for 5.3.18
Merging took 3.3450126647949 microseconds<br /> Foreach took 2.018928527832 microseconds<br /> Func took 7.2231292724609 microseconds<br />
Output for 5.3.17
Merging took 2.6078224182129 microseconds<br /> Foreach took 1.251220703125 microseconds<br /> Func took 5.0749778747559 microseconds<br />
Output for 5.3.16
Merging took 3.3791065216064 microseconds<br /> Foreach took 1.6050338745117 microseconds<br /> Func took 11.218070983887 microseconds<br />
Output for 5.3.15
Merging took 4.1148662567139 microseconds<br /> Foreach took 1.5101432800293 microseconds<br /> Func took 5.7268142700195 microseconds<br />
Output for 5.3.14
Merging took 3.9000511169434 microseconds<br /> Foreach took 1.9781589508057 microseconds<br /> Func took 6.8039894104004 microseconds<br />
Output for 5.3.13
Merging took 2.9771327972412 microseconds<br /> Foreach took 1.3859272003174 microseconds<br /> Func took 4.7760009765625 microseconds<br />
Output for 5.3.12
Merging took 3.3500194549561 microseconds<br /> Foreach took 1.6751289367676 microseconds<br /> Func took 6.1559677124023 microseconds<br />
Output for 5.3.11
Merging took 4.7070980072021 microseconds<br /> Foreach took 2.4940967559814 microseconds<br /> Func took 8.8729858398438 microseconds<br />
Output for 5.3.10
Merging took 3.0660629272461 microseconds<br /> Foreach took 1.5900135040283 microseconds<br /> Func took 6.3490867614746 microseconds<br />
Output for 5.3.9
Merging took 3.3509731292725 microseconds<br /> Foreach took 1.6138553619385 microseconds<br /> Func took 6.5031051635742 microseconds<br />
Output for 5.3.8
Merging took 3.8251876831055 microseconds<br /> Foreach took 1.5928745269775 microseconds<br /> Func took 5.6109428405762 microseconds<br />
Output for 5.3.7
Merging took 3.2930374145508 microseconds<br /> Foreach took 1.7130374908447 microseconds<br /> Func took 6.1800479888916 microseconds<br />
Output for 5.3.6
Merging took 3.7961006164551 microseconds<br /> Foreach took 1.7321109771729 microseconds<br /> Func took 6.5879821777344 microseconds<br />
Output for 5.3.5
Merging took 4.1329860687256 microseconds<br /> Foreach took 1.7879009246826 microseconds<br /> Func took 6.479024887085 microseconds<br />
Output for 5.3.4
Merging took 3.0817985534668 microseconds<br /> Foreach took 1.5249252319336 microseconds<br /> Func took 5.7029724121094 microseconds<br />
Output for 5.3.3
Merging took 6.2048435211182 microseconds<br /> Foreach took 3.2970905303955 microseconds<br /> Func took 9.3801021575928 microseconds<br />
Output for 5.3.2
Merging took 3.0720233917236 microseconds<br /> Foreach took 1.5280246734619 microseconds<br /> Func took 5.8119297027588 microseconds<br />
Output for 5.3.1
Merging took 4.3201446533203 microseconds<br /> Foreach took 1.9538402557373 microseconds<br /> Func took 7.7779293060303 microseconds<br />
Output for 5.3.0
Merging took 1.5368461608887 microseconds<br /> Foreach took 1.8901824951172 microseconds<br /> Func took 6.5069198608398 microseconds<br />
Output for 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STATIC in /in/8pX9f on line 34
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/8pX9f on line 27
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_ARRAY, expecting ')' in /in/8pX9f on line 27
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_ARRAY, expecting ')' in /in/8pX9f on line 27
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/8pX9f on line 27
Process exited with code 255.