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, $performance = false) { foreach ($b as $key => $value) { if ($performance == false && 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, true); $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 1.0161399841309 microseconds<br /> Foreach took 1.4100074768066 microseconds<br /> Func took 1.8219947814941 microseconds<br />
Output for hhvm-3.10.0
Merging took 1.5759468078613 microseconds<br /> Foreach took 2.6979446411133 microseconds<br /> Func took 3.5979747772217 microseconds<br />
Output for 5.6.28
Merging took 2.532958984375 microseconds<br /> Foreach took 2.6421546936035 microseconds<br /> Func took 5.7559013366699 microseconds<br />
Output for 5.6.25
Merging took 2.0298957824707 microseconds<br /> Foreach took 1.8410682678223 microseconds<br /> Func took 4.3079853057861 microseconds<br />
Output for 5.6.24
Merging took 2.3221969604492 microseconds<br /> Foreach took 2.3019313812256 microseconds<br /> Func took 4.9281120300293 microseconds<br />
Output for 5.6.23
Merging took 1.7969608306885 microseconds<br /> Foreach took 1.8038749694824 microseconds<br /> Func took 3.5932064056396 microseconds<br />
Output for 5.6.22
Merging took 1.7659664154053 microseconds<br /> Foreach took 1.7189979553223 microseconds<br /> Func took 3.6568641662598 microseconds<br />
Output for 5.6.21
Merging took 2.1419525146484 microseconds<br /> Foreach took 3.4210681915283 microseconds<br /> Func took 7.9779624938965 microseconds<br />
Output for 5.6.20
Merging took 2.8750896453857 microseconds<br /> Foreach took 3.5650730133057 microseconds<br /> Func took 5.9740543365479 microseconds<br />
Output for 5.6.19
Merging took 2.4361610412598 microseconds<br /> Foreach took 2.6149749755859 microseconds<br /> Func took 5.141019821167 microseconds<br />
Output for 5.6.18
Merging took 1.7299652099609 microseconds<br /> Foreach took 1.7869472503662 microseconds<br /> Func took 3.8609504699707 microseconds<br />
Output for 5.6.17
Merging took 2.194881439209 microseconds<br /> Foreach took 2.1741390228271 microseconds<br /> Func took 5.2800178527832 microseconds<br />
Output for 5.6.16
Merging took 2.410888671875 microseconds<br /> Foreach took 2.5360584259033 microseconds<br /> Func took 5.1491260528564 microseconds<br />
Output for 5.6.15
Merging took 2.0370483398438 microseconds<br /> Foreach took 2.2208690643311 microseconds<br /> Func took 5.2239894866943 microseconds<br />
Output for 5.6.14
Merging took 2.3009777069092 microseconds<br /> Foreach took 1.8100738525391 microseconds<br /> Func took 3.9520263671875 microseconds<br />
Output for 5.6.13
Merging took 2.6512145996094 microseconds<br /> Foreach took 2.5599002838135 microseconds<br /> Func took 6.1731338500977 microseconds<br />
Output for 5.6.12
Merging took 1.8880367279053 microseconds<br /> Foreach took 2.7477741241455 microseconds<br /> Func took 4.4209957122803 microseconds<br />
Output for 5.6.11
Merging took 2.5300979614258 microseconds<br /> Foreach took 2.4869441986084 microseconds<br /> Func took 5.3250789642334 microseconds<br />
Output for 5.6.10
Merging took 1.7521381378174 microseconds<br /> Foreach took 1.7540454864502 microseconds<br /> Func took 3.7839412689209 microseconds<br />
Output for 5.6.9
Merging took 3.7431716918945 microseconds<br /> Foreach took 4.4839382171631 microseconds<br /> Func took 4.7111511230469 microseconds<br />
Output for 5.6.8
Merging took 2.3031234741211 microseconds<br /> Foreach took 2.3510456085205 microseconds<br /> Func took 4.7769546508789 microseconds<br />
Output for 5.6.7
Merging took 2.4449825286865 microseconds<br /> Foreach took 2.5250911712646 microseconds<br /> Func took 3.7319660186768 microseconds<br />
Output for 5.6.6
Merging took 2.0928382873535 microseconds<br /> Foreach took 2.0780563354492 microseconds<br /> Func took 4.5390129089355 microseconds<br />
Output for 5.6.5
Merging took 1.9550323486328 microseconds<br /> Foreach took 1.93190574646 microseconds<br /> Func took 3.8611888885498 microseconds<br />
Output for 5.6.4
Merging took 2.1159648895264 microseconds<br /> Foreach took 1.8999576568604 microseconds<br /> Func took 4.0469169616699 microseconds<br />
Output for 5.6.3
Merging took 1.8999576568604 microseconds<br /> Foreach took 2.953052520752 microseconds<br /> Func took 4.7760009765625 microseconds<br />
Output for 5.6.2
Merging took 2.4008750915527 microseconds<br /> Foreach took 2.263069152832 microseconds<br /> Func took 4.8999786376953 microseconds<br />
Output for 5.6.1
Merging took 2.4030208587646 microseconds<br /> Foreach took 2.2950172424316 microseconds<br /> Func took 4.9099922180176 microseconds<br />
Output for 5.6.0
Merging took 3.209114074707 microseconds<br /> Foreach took 3.0059814453125 microseconds<br /> Func took 5.4209232330322 microseconds<br />
Output for 5.5.38
Merging took 2.5880336761475 microseconds<br /> Foreach took 2.6910305023193 microseconds<br /> Func took 5.7621002197266 microseconds<br />
Output for 5.5.37
Merging took 2.4399757385254 microseconds<br /> Foreach took 2.6161670684814 microseconds<br /> Func took 5.8810710906982 microseconds<br />
Output for 5.5.36
Merging took 2.4380683898926 microseconds<br /> Foreach took 3.1859874725342 microseconds<br /> Func took 6.1759948730469 microseconds<br />
Output for 5.5.35
Merging took 2.0298957824707 microseconds<br /> Foreach took 2.0849704742432 microseconds<br /> Func took 4.3559074401855 microseconds<br />
Output for 5.5.34
Merging took 2.1731853485107 microseconds<br /> Foreach took 2.8679370880127 microseconds<br /> Func took 5.1591396331787 microseconds<br />
Output for 5.5.33
Merging took 2.0599365234375 microseconds<br /> Foreach took 2.2540092468262 microseconds<br /> Func took 4.9231052398682 microseconds<br />
Output for 5.5.32
Merging took 2.3560523986816 microseconds<br /> Foreach took 2.4478435516357 microseconds<br /> Func took 5.4390430450439 microseconds<br />
Output for 5.5.31
Merging took 2.335786819458 microseconds<br /> Foreach took 2.4130344390869 microseconds<br /> Func took 5.3210258483887 microseconds<br />
Output for 5.5.30
Merging took 3.1721591949463 microseconds<br /> Foreach took 3.9820671081543 microseconds<br /> Func took 6.4208507537842 microseconds<br />
Output for 5.5.29
Merging took 2.4890899658203 microseconds<br /> Foreach took 2.6390552520752 microseconds<br /> Func took 5.9719085693359 microseconds<br />
Output for 5.5.28
Merging took 1.6980171203613 microseconds<br /> Foreach took 1.6829967498779 microseconds<br /> Func took 3.6511421203613 microseconds<br />
Output for 5.5.27
Merging took 2.547025680542 microseconds<br /> Foreach took 2.5589466094971 microseconds<br /> Func took 5.6149959564209 microseconds<br />
Output for 5.5.26
Merging took 2.1078586578369 microseconds<br /> Foreach took 2.1789073944092 microseconds<br /> Func took 4.6110153198242 microseconds<br />
Output for 5.5.25
Merging took 2.6531219482422 microseconds<br /> Foreach took 2.4669170379639 microseconds<br /> Func took 5.2659511566162 microseconds<br />
Output for 5.5.24
Merging took 2.8219223022461 microseconds<br /> Foreach took 2.2540092468262 microseconds<br /> Func took 4.5289993286133 microseconds<br />
Output for 5.5.23
Merging took 2.122163772583 microseconds<br /> Foreach took 2.2149085998535 microseconds<br /> Func took 4.4610500335693 microseconds<br />
Output for 5.5.22
Merging took 1.5668869018555 microseconds<br /> Foreach took 1.6450881958008 microseconds<br /> Func took 5.1949024200439 microseconds<br />
Output for 5.5.21
Merging took 1.5809535980225 microseconds<br /> Foreach took 1.5909671783447 microseconds<br /> Func took 3.4079551696777 microseconds<br />
Output for 5.5.20
Merging took 2.3441314697266 microseconds<br /> Foreach took 2.4549961090088 microseconds<br /> Func took 5.0151348114014 microseconds<br />
Output for 5.5.19
Merging took 1.8048286437988 microseconds<br /> Foreach took 2.1350383758545 microseconds<br /> Func took 4.5039653778076 microseconds<br />
Output for 5.5.18
Merging took 2.6187896728516 microseconds<br /> Foreach took 2.7058124542236 microseconds<br /> Func took 5.8498382568359 microseconds<br />
Output for 5.5.16
Merging took 2.4328231811523 microseconds<br /> Foreach took 2.5999546051025 microseconds<br /> Func took 5.5348873138428 microseconds<br />
Output for 5.5.15
Merging took 2.7790069580078 microseconds<br /> Foreach took 3.2050609588623 microseconds<br /> Func took 4.7121047973633 microseconds<br />
Output for 5.5.14
Merging took 2.2070407867432 microseconds<br /> Foreach took 2.2480487823486 microseconds<br /> Func took 4.9459934234619 microseconds<br />
Output for 5.5.13
Merging took 2.5260448455811 microseconds<br /> Foreach took 2.4340152740479 microseconds<br /> Func took 4.878044128418 microseconds<br />
Output for 5.5.12
Merging took 2.3338794708252 microseconds<br /> Foreach took 2.312183380127 microseconds<br /> Func took 5.0909519195557 microseconds<br />
Output for 5.5.11
Merging took 2.6679039001465 microseconds<br /> Foreach took 2.5150775909424 microseconds<br /> Func took 5.5739879608154 microseconds<br />
Output for 5.5.10
Merging took 1.9080638885498 microseconds<br /> Foreach took 2.0051002502441 microseconds<br /> Func took 4.2250156402588 microseconds<br />
Output for 5.5.9
Merging took 1.784086227417 microseconds<br /> Foreach took 1.8930435180664 microseconds<br /> Func took 4.0500164031982 microseconds<br />
Output for 5.5.8
Merging took 1.8339157104492 microseconds<br /> Foreach took 1.9059181213379 microseconds<br /> Func took 4.0051937103271 microseconds<br />
Output for 5.5.7
Merging took 2.4561882019043 microseconds<br /> Foreach took 2.5169849395752 microseconds<br /> Func took 5.0420761108398 microseconds<br />
Output for 5.5.6
Merging took 2.4969577789307 microseconds<br /> Foreach took 2.662181854248 microseconds<br /> Func took 5.0699710845947 microseconds<br />
Output for 5.5.5
Merging took 5.6300163269043 microseconds<br /> Foreach took 2.7000904083252 microseconds<br /> Func took 5.3551197052002 microseconds<br />
Output for 5.5.4
Merging took 4.7390460968018 microseconds<br /> Foreach took 1.8281936645508 microseconds<br /> Func took 4.0750503540039 microseconds<br />
Output for 5.5.3
Merging took 5.7780742645264 microseconds<br /> Foreach took 2.1469593048096 microseconds<br /> Func took 5.1231384277344 microseconds<br />
Output for 5.5.2
Merging took 5.3479671478271 microseconds<br /> Foreach took 2.2192001342773 microseconds<br /> Func took 4.4429302215576 microseconds<br />
Output for 5.5.1
Merging took 4.2400360107422 microseconds<br /> Foreach took 1.8608570098877 microseconds<br /> Func took 4.3540000915527 microseconds<br />
Output for 5.5.0
Merging took 5.6419372558594 microseconds<br /> Foreach took 2.3720264434814 microseconds<br /> Func took 5.8319568634033 microseconds<br />
Output for 5.4.45
Merging took 4.878044128418 microseconds<br /> Foreach took 2.112865447998 microseconds<br /> Func took 4.7891139984131 microseconds<br />
Output for 5.4.44
Merging took 4.4329166412354 microseconds<br /> Foreach took 2.2070407867432 microseconds<br /> Func took 5.2170753479004 microseconds<br />
Output for 5.4.43
Merging took 3.9968490600586 microseconds<br /> Foreach took 1.8889904022217 microseconds<br /> Func took 4.511833190918 microseconds<br />
Output for 5.4.42
Merging took 5.0289630889893 microseconds<br /> Foreach took 2.4430751800537 microseconds<br /> Func took 5.5019855499268 microseconds<br />
Output for 5.4.41
Merging took 3.1509399414062 microseconds<br /> Foreach took 1.633882522583 microseconds<br /> Func took 4.101037979126 microseconds<br />
Output for 5.4.40
Merging took 3.5169124603271 microseconds<br /> Foreach took 1.6548633575439 microseconds<br /> Func took 3.8270950317383 microseconds<br />
Output for 5.4.39
Merging took 4.7609806060791 microseconds<br /> Foreach took 2.2258758544922 microseconds<br /> Func took 4.8279762268066 microseconds<br />
Output for 5.4.38
Merging took 4.5261383056641 microseconds<br /> Foreach took 1.9869804382324 microseconds<br /> Func took 4.4569969177246 microseconds<br />
Output for 5.4.37
Merging took 4.5678615570068 microseconds<br /> Foreach took 3.2382011413574 microseconds<br /> Func took 8.3129405975342 microseconds<br />
Output for 5.4.36
Merging took 5.4769515991211 microseconds<br /> Foreach took 2.1121501922607 microseconds<br /> Func took 4.6560764312744 microseconds<br />
Output for 5.4.35
Merging took 5.3679943084717 microseconds<br /> Foreach took 2.1569728851318 microseconds<br /> Func took 4.7330856323242 microseconds<br />
Output for 5.4.34
Merging took 4.4248104095459 microseconds<br /> Foreach took 2.6109218597412 microseconds<br /> Func took 5.4111480712891 microseconds<br />
Output for 5.4.32
Merging took 4.9409866333008 microseconds<br /> Foreach took 2.4158954620361 microseconds<br /> Func took 5.9309005737305 microseconds<br />
Output for 5.4.31
Merging took 4.957914352417 microseconds<br /> Foreach took 2.2361278533936 microseconds<br /> Func took 5.1510334014893 microseconds<br />
Output for 5.4.30
Merging took 3.4000873565674 microseconds<br /> Foreach took 1.6169548034668 microseconds<br /> Func took 3.5579204559326 microseconds<br />
Output for 5.4.29
Merging took 5.9940814971924 microseconds<br /> Foreach took 2.701997756958 microseconds<br /> Func took 5.4531097412109 microseconds<br />
Output for 5.4.28
Merging took 4.9967765808105 microseconds<br /> Foreach took 2.0492076873779 microseconds<br /> Func took 5.1279067993164 microseconds<br />
Output for 5.4.27
Merging took 3.6110877990723 microseconds<br /> Foreach took 1.6908645629883 microseconds<br /> Func took 3.9420127868652 microseconds<br />
Output for 5.4.26
Merging took 3.5040378570557 microseconds<br /> Foreach took 1.6272068023682 microseconds<br /> Func took 3.687858581543 microseconds<br />
Output for 5.4.25
Merging took 4.857063293457 microseconds<br /> Foreach took 2.3210048675537 microseconds<br /> Func took 4.8861503601074 microseconds<br />
Output for 5.4.24
Merging took 4.6641826629639 microseconds<br /> Foreach took 2.0709037780762 microseconds<br /> Func took 4.951000213623 microseconds<br />
Output for 5.4.23
Merging took 3.6680698394775 microseconds<br /> Foreach took 1.6720294952393 microseconds<br /> Func took 3.5910606384277 microseconds<br />
Output for 5.4.22
Merging took 3.9858818054199 microseconds<br /> Foreach took 1.8699169158936 microseconds<br /> Func took 4.7311782836914 microseconds<br />
Output for 5.4.21
Merging took 4.3308734893799 microseconds<br /> Foreach took 1.9669532775879 microseconds<br /> Func took 4.4608116149902 microseconds<br />
Output for 5.4.20
Merging took 4.6548843383789 microseconds<br /> Foreach took 2.2580623626709 microseconds<br /> Func took 4.7299861907959 microseconds<br />
Output for 5.4.19
Merging took 3.3020973205566 microseconds<br /> Foreach took 1.4491081237793 microseconds<br /> Func took 3.4389495849609 microseconds<br />
Output for 5.4.18
Merging took 4.1100978851318 microseconds<br /> Foreach took 2.0120143890381 microseconds<br /> Func took 4.0619373321533 microseconds<br />
Output for 5.4.17
Merging took 5.1670074462891 microseconds<br /> Foreach took 1.762866973877 microseconds<br /> Func took 6.0160160064697 microseconds<br />
Output for 5.4.16
Merging took 6.24680519104 microseconds<br /> Foreach took 2.4659633636475 microseconds<br /> Func took 5.7978630065918 microseconds<br />
Output for 5.4.15
Merging took 5.047082901001 microseconds<br /> Foreach took 2.3889541625977 microseconds<br /> Func took 5.8479309082031 microseconds<br />
Output for 5.4.14
Merging took 4.5230388641357 microseconds<br /> Foreach took 2.0310878753662 microseconds<br /> Func took 5.5890083312988 microseconds<br />
Output for 5.4.13
Merging took 5.6061744689941 microseconds<br /> Foreach took 2.5348663330078 microseconds<br /> Func took 6.0369968414307 microseconds<br />
Output for 5.4.12
Merging took 4.7328472137451 microseconds<br /> Foreach took 2.3138523101807 microseconds<br /> Func took 5.5651664733887 microseconds<br />
Output for 5.4.11
Merging took 4.2531490325928 microseconds<br /> Foreach took 1.5189647674561 microseconds<br /> Func took 3.3309459686279 microseconds<br />
Output for 5.4.10
Merging took 4.5740604400635 microseconds<br /> Foreach took 2.2430419921875 microseconds<br /> Func took 4.2300224304199 microseconds<br />
Output for 5.4.9
Merging took 4.4310092926025 microseconds<br /> Foreach took 2.0990371704102 microseconds<br /> Func took 4.0478706359863 microseconds<br />
Output for 5.4.8
Merging took 3.4220218658447 microseconds<br /> Foreach took 1.5580654144287 microseconds<br /> Func took 3.6129951477051 microseconds<br />
Output for 5.4.7
Merging took 5.385160446167 microseconds<br /> Foreach took 2.4909973144531 microseconds<br /> Func took 5.856990814209 microseconds<br />
Output for 5.4.6
Merging took 5.3541660308838 microseconds<br /> Foreach took 2.3250579833984 microseconds<br /> Func took 5.5539608001709 microseconds<br />
Output for 5.4.5
Merging took 5.0108432769775 microseconds<br /> Foreach took 2.3608207702637 microseconds<br /> Func took 5.3741931915283 microseconds<br />
Output for 5.4.4
Merging took 3.6799907684326 microseconds<br /> Foreach took 1.694917678833 microseconds<br /> Func took 4.5671463012695 microseconds<br />
Output for 5.4.3
Merging took 3.9629936218262 microseconds<br /> Foreach took 1.8630027770996 microseconds<br /> Func took 5.0969123840332 microseconds<br />
Output for 5.4.2
Merging took 5.3670406341553 microseconds<br /> Foreach took 2.5570392608643 microseconds<br /> Func took 6.1330795288086 microseconds<br />
Output for 5.4.1
Merging took 4.810094833374 microseconds<br /> Foreach took 2.3539066314697 microseconds<br /> Func took 5.0780773162842 microseconds<br />
Output for 5.4.0
Merging took 5.6619644165039 microseconds<br /> Foreach took 2.673864364624 microseconds<br /> Func took 5.2649974822998 microseconds<br />
Output for 5.3.29
Merging took 4.2550563812256 microseconds<br /> Foreach took 2.100944519043 microseconds<br /> Func took 4.392147064209 microseconds<br />
Output for 5.3.28
Merging took 2.9997825622559 microseconds<br /> Foreach took 1.5158653259277 microseconds<br /> Func took 3.1559467315674 microseconds<br />
Output for 5.3.27
Merging took 5.1910877227783 microseconds<br /> Foreach took 2.4368762969971 microseconds<br /> Func took 5.3770542144775 microseconds<br />
Output for 5.3.26
Merging took 4.7111511230469 microseconds<br /> Foreach took 2.2518634796143 microseconds<br /> Func took 4.8477649688721 microseconds<br />
Output for 5.3.25
Merging took 4.7931671142578 microseconds<br /> Foreach took 2.2480487823486 microseconds<br /> Func took 4.7619342803955 microseconds<br />
Output for 5.3.24
Merging took 3.1919479370117 microseconds<br /> Foreach took 1.5990734100342 microseconds<br /> Func took 3.5209655761719 microseconds<br />
Output for 5.3.23
Merging took 5.5749416351318 microseconds<br /> Foreach took 3.2310485839844 microseconds<br /> Func took 5.8150291442871 microseconds<br />
Output for 5.3.22
Merging took 4.5719146728516 microseconds<br /> Foreach took 2.3300647735596 microseconds<br /> Func took 5.1641464233398 microseconds<br />
Output for 5.3.21
Merging took 4.845142364502 microseconds<br /> Foreach took 2.4900436401367 microseconds<br /> Func took 4.6019554138184 microseconds<br />
Output for 5.3.20
Merging took 3.7651062011719 microseconds<br /> Foreach took 2.0649433135986 microseconds<br /> Func took 3.727912902832 microseconds<br />
Output for 5.3.19
Merging took 5.1970481872559 microseconds<br /> Foreach took 2.5179386138916 microseconds<br /> Func took 5.5959224700928 microseconds<br />
Output for 5.3.18
Merging took 4.3680667877197 microseconds<br /> Foreach took 2.1979808807373 microseconds<br /> Func took 3.654956817627 microseconds<br />
Output for 5.3.17
Merging took 4.3849945068359 microseconds<br /> Foreach took 2.0568370819092 microseconds<br /> Func took 4.3120384216309 microseconds<br />
Output for 5.3.16
Merging took 4.5680999755859 microseconds<br /> Foreach took 2.0790100097656 microseconds<br /> Func took 4.9178600311279 microseconds<br />
Output for 5.3.15
Merging took 5.4819583892822 microseconds<br /> Foreach took 2.0771026611328 microseconds<br /> Func took 4.3718814849854 microseconds<br />
Output for 5.3.14
Merging took 4.0378570556641 microseconds<br /> Foreach took 1.8081665039062 microseconds<br /> Func took 3.7310123443604 microseconds<br />
Output for 5.3.13
Merging took 4.6629905700684 microseconds<br /> Foreach took 2.2740364074707 microseconds<br /> Func took 4.9397945404053 microseconds<br />
Output for 5.3.12
Merging took 4.878044128418 microseconds<br /> Foreach took 2.453088760376 microseconds<br /> Func took 5.1071643829346 microseconds<br />
Output for 5.3.11
Merging took 3.2889842987061 microseconds<br /> Foreach took 1.6100406646729 microseconds<br /> Func took 3.3860206604004 microseconds<br />
Output for 5.3.10
Merging took 5.5699348449707 microseconds<br /> Foreach took 2.8719902038574 microseconds<br /> Func took 5.7728290557861 microseconds<br />
Output for 5.3.9
Merging took 5.0170421600342 microseconds<br /> Foreach took 2.4011135101318 microseconds<br /> Func took 5.0420761108398 microseconds<br />
Output for 5.3.8
Merging took 4.580020904541 microseconds<br /> Foreach took 2.0740032196045 microseconds<br /> Func took 4.7531127929688 microseconds<br />
Output for 5.3.7
Merging took 5.5899620056152 microseconds<br /> Foreach took 2.7010440826416 microseconds<br /> Func took 5.4869651794434 microseconds<br />
Output for 5.3.6
Merging took 7.2660446166992 microseconds<br /> Foreach took 2.6979446411133 microseconds<br /> Func took 7.4419975280762 microseconds<br />
Output for 5.3.5
Merging took 4.4939517974854 microseconds<br /> Foreach took 2.216100692749 microseconds<br /> Func took 4.8580169677734 microseconds<br />
Output for 5.3.4
Merging took 5.0761699676514 microseconds<br /> Foreach took 2.471923828125 microseconds<br /> Func took 5.0771236419678 microseconds<br />
Output for 5.3.3
Merging took 5.0358772277832 microseconds<br /> Foreach took 2.4039745330811 microseconds<br /> Func took 5.06591796875 microseconds<br />
Output for 5.3.2
Merging took 4.7199726104736 microseconds<br /> Foreach took 2.0630359649658 microseconds<br /> Func took 4.1191577911377 microseconds<br />
Output for 5.3.1
Merging took 5.6331157684326 microseconds<br /> Foreach took 2.7830600738525 microseconds<br /> Func took 5.9349536895752 microseconds<br />
Output for 5.3.0
Merging took 2.8319358825684 microseconds<br /> Foreach took 3.2970905303955 microseconds<br /> Func took 6.2229633331299 microseconds<br />
Output for 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STATIC in /in/4VPu0 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/4VPu0 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/4VPu0 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/4VPu0 on line 27
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/4VPu0 on line 27
Process exited with code 255.