3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classmap1 = array(); for ($i=1; $i<=5000; $i++) { $classmap1['a'.$i] = $i+1; } $classmap2 = array(); for ($i=1; $i<=5000; $i++) { $classmap2['b'.$i] = $i+1; } $startTimeFunc = microtime(true); array_merge($classmap1, $classmap2); $endTimeFunc = microtime(true); echo "Func took " . (($endTimeFunc - $startTimeFunc)*1000) ." microseconds<br />\n";
Output for 7.4.1
Func took 0.54597854614258 microseconds<br />
Output for 7.4.0
Func took 0.37503242492676 microseconds<br />
Output for 7.2.11, 7.3.13
Func took 0.44703483581543 microseconds<br />
Output for 7.3.12
Func took 0.56982040405273 microseconds<br />
Output for 7.3.11
Func took 0.51498413085938 microseconds<br />
Output for 7.0.10, 7.3.10
Func took 0.50091743469238 microseconds<br />
Output for 7.3.9
Func took 0.43010711669922 microseconds<br />
Output for 7.3.8
Func took 0.46896934509277 microseconds<br />
Output for 7.2.20, 7.3.7
Func took 0.32591819763184 microseconds<br />
Output for 7.3.6
Func took 0.32997131347656 microseconds<br />
Output for 7.3.5
Func took 0.36907196044922 microseconds<br />
Output for 7.3.4
Func took 0.33211708068848 microseconds<br />
Output for 7.3.3
Func took 0.40292739868164 microseconds<br />
Output for 7.3.2
Func took 0.36001205444336 microseconds<br />
Output for 7.1.21, 7.3.1
Func took 0.45895576477051 microseconds<br />
Output for 7.3.0
Func took 0.41413307189941 microseconds<br />
Output for 7.2.26
Func took 0.48303604125977 microseconds<br />
Output for 7.2.25
Func took 0.53596496582031 microseconds<br />
Output for 7.2.24
Func took 0.36096572875977 microseconds<br />
Output for 7.2.23
Func took 0.49185752868652 microseconds<br />
Output for 7.2.22
Func took 0.52189826965332 microseconds<br />
Output for 7.2.21
Func took 0.39005279541016 microseconds<br />
Output for 7.2.19
Func took 0.32305717468262 microseconds<br />
Output for 7.2.18
Func took 0.36501884460449 microseconds<br />
Output for 7.2.17
Func took 0.35905838012695 microseconds<br />
Output for 7.0.0, 7.0.12, 7.2.16
Func took 0.53215026855469 microseconds<br />
Output for 7.2.15
Func took 0.45514106750488 microseconds<br />
Output for 7.1.22, 7.2.14
Func took 0.4420280456543 microseconds<br />
Output for 7.2.13
Func took 0.50997734069824 microseconds<br />
Output for 7.1.10, 7.2.12
Func took 0.57411193847656 microseconds<br />
Output for 7.2.10
Func took 0.38909912109375 microseconds<br />
Output for 7.2.9
Func took 0.51307678222656 microseconds<br />
Output for 7.2.8
Func took 0.42390823364258 microseconds<br />
Output for 7.2.7
Func took 0.44894218444824 microseconds<br />
Output for 7.2.6
Func took 0.45490264892578 microseconds<br />
Output for 7.2.1, 7.2.5
Func took 0.48613548278809 microseconds<br />
Output for 7.2.3 - 7.2.4
Func took 0.42200088500977 microseconds<br />
Output for 7.2.2
Func took 0.62799453735352 microseconds<br />
Output for 7.2.0
Func took 0.55885314941406 microseconds<br />
Output for 7.1.33
Func took 0.63419342041016 microseconds<br />
Output for 7.1.32
Func took 0.58603286743164 microseconds<br />
Output for 7.1.31
Func took 0.47802925109863 microseconds<br />
Output for 7.1.30
Func took 0.48995018005371 microseconds<br />
Output for 7.0.11, 7.1.29
Func took 0.44798851013184 microseconds<br />
Output for 7.1.28
Func took 0.57506561279297 microseconds<br />
Output for 7.1.27
Func took 0.50902366638184 microseconds<br />
Output for 7.1.5, 7.1.26
Func took 0.50616264343262 microseconds<br />
Output for 7.1.25
Func took 0.53000450134277 microseconds<br />
Output for 7.1.24
Func took 0.45108795166016 microseconds<br />
Output for 7.1.23
Func took 0.42295455932617 microseconds<br />
Output for 7.1.20
Func took 0.59604644775391 microseconds<br />
Output for 7.1.19
Func took 0.53501129150391 microseconds<br />
Output for 7.1.18
Func took 0.54407119750977 microseconds<br />
Output for 7.0.32, 7.1.17
Func took 0.54502487182617 microseconds<br />
Output for 7.1.16
Func took 0.48017501831055 microseconds<br />
Output for 7.1.11, 7.1.15
Func took 0.52499771118164 microseconds<br />
Output for 7.1.14
Func took 0.5650520324707 microseconds<br />
Output for 7.1.13
Func took 0.57005882263184 microseconds<br />
Output for 7.1.12
Func took 0.52309036254883 microseconds<br />
Output for 7.1.4, 7.1.9
Func took 0.49901008605957 microseconds<br />
Output for 7.1.8
Func took 0.52809715270996 microseconds<br />
Output for 7.1.7
Func took 0.55217742919922 microseconds<br />
Output for 7.1.6
Func took 0.50210952758789 microseconds<br />
Output for 7.0.16, 7.1.3
Func took 0.53191184997559 microseconds<br />
Output for 7.1.2
Func took 0.44393539428711 microseconds<br />
Output for 7.1.1
Func took 0.67400932312012 microseconds<br />
Output for 7.1.0
Func took 0.49996376037598 microseconds<br />
Output for 7.0.33
Func took 0.48589706420898 microseconds<br />
Output for 7.0.31
Func took 0.56195259094238 microseconds<br />
Output for 7.0.30
Func took 0.49304962158203 microseconds<br />
Output for 7.0.29
Func took 0.48685073852539 microseconds<br />
Output for 7.0.28
Func took 0.44488906860352 microseconds<br />
Output for 7.0.27
Func took 0.51999092102051 microseconds<br />
Output for 7.0.26
Func took 0.59103965759277 microseconds<br />
Output for 7.0.25
Func took 0.49495697021484 microseconds<br />
Output for 7.0.24
Func took 0.51403045654297 microseconds<br />
Output for 7.0.23
Func took 0.54717063903809 microseconds<br />
Output for 7.0.22
Func took 0.57196617126465 microseconds<br />
Output for 7.0.21
Func took 0.5500316619873 microseconds<br />
Output for 7.0.20
Func took 0.43988227844238 microseconds<br />
Output for 7.0.19
Func took 0.47898292541504 microseconds<br />
Output for 7.0.18
Func took 0.40793418884277 microseconds<br />
Output for 7.0.17
Func took 0.62894821166992 microseconds<br />
Output for 7.0.15
Func took 0.5488395690918 microseconds<br />
Output for 7.0.14
Func took 0.59390068054199 microseconds<br />
Output for 7.0.13
Func took 0.4570484161377 microseconds<br />
Output for 7.0.9
Func took 0.46920776367188 microseconds<br />
Output for 7.0.8
Func took 0.4730224609375 microseconds<br />
Output for 7.0.7
Func took 0.62298774719238 microseconds<br />
Output for 7.0.3, 7.0.6
Func took 0.47707557678223 microseconds<br />
Output for 7.0.5
Func took 0.56099891662598 microseconds<br />
Output for 7.0.4
Func took 0.46801567077637 microseconds<br />
Output for 7.0.2
Func took 0.56004524230957 microseconds<br />
Output for 7.0.1
Func took 0.52785873413086 microseconds<br />
Output for 5.6.40
Func took 1.3949871063232 microseconds<br />
Output for 5.6.39
Func took 1.6248226165771 microseconds<br />
Output for 5.6.22, 5.6.38
Func took 1.3840198516846 microseconds<br />
Output for 5.6.37
Func took 1.4348030090332 microseconds<br />
Output for 5.6.36
Func took 1.4100074768066 microseconds<br />
Output for 5.6.35
Func took 1.7900466918945 microseconds<br />
Output for 5.5.28, 5.6.34
Func took 1.3909339904785 microseconds<br />
Output for 5.6.33
Func took 1.431941986084 microseconds<br />
Output for 5.6.32
Func took 1.3959407806396 microseconds<br />
Output for 5.6.31
Func took 1.4219284057617 microseconds<br />
Output for 5.6.30
Func took 1.4050006866455 microseconds<br />
Output for 5.6.29
Func took 1.8401145935059 microseconds<br />
Output for 5.6.28
Func took 1.349925994873 microseconds<br />
Output for 5.6.27
Func took 1.5389919281006 microseconds<br />
Output for 5.5.23, 5.6.26
Func took 1.3608932495117 microseconds<br />
Output for 5.6.25
Func took 1.3468265533447 microseconds<br />
Output for 5.6.24
Func took 1.6310214996338 microseconds<br />
Output for 5.6.23
Func took 1.378059387207 microseconds<br />
Output for 5.6.21
Func took 1.4829635620117 microseconds<br />
Output for 5.6.20
Func took 1.4169216156006 microseconds<br />
Output for 5.6.19
Func took 1.539945602417 microseconds<br />
Output for 5.6.18
Func took 1.8460750579834 microseconds<br />
Output for 5.6.17
Func took 2.2368431091309 microseconds<br />
Output for 5.6.16
Func took 1.554012298584 microseconds<br />
Output for 5.6.15
Func took 1.6360282897949 microseconds<br />
Output for 5.6.14
Func took 1.4622211456299 microseconds<br />
Output for 5.6.13
Func took 1.3689994812012 microseconds<br />
Output for 5.6.12
Func took 1.9881725311279 microseconds<br />
Output for 5.6.11
Func took 1.5342235565186 microseconds<br />
Output for 5.6.10
Func took 1.8510818481445 microseconds<br />
Output for 5.6.9
Func took 1.4209747314453 microseconds<br />
Output for 5.6.8
Func took 2.2718906402588 microseconds<br />
Output for 5.6.7
Func took 1.3871192932129 microseconds<br />
Output for 5.6.6
Func took 1.42502784729 microseconds<br />
Output for 5.6.5
Func took 1.6078948974609 microseconds<br />
Output for 5.6.4
Func took 1.410961151123 microseconds<br />
Output for 5.6.3
Func took 1.3899803161621 microseconds<br />
Output for 5.6.2
Func took 1.7180442810059 microseconds<br />
Output for 5.6.1
Func took 1.727819442749 microseconds<br />
Output for 5.6.0
Func took 1.662015914917 microseconds<br />
Output for 5.5.38
Func took 1.5561580657959 microseconds<br />
Output for 5.5.37
Func took 1.3341903686523 microseconds<br />
Output for 5.5.36
Func took 1.7590522766113 microseconds<br />
Output for 5.5.33, 5.5.35
Func took 1.3740062713623 microseconds<br />
Output for 5.5.34
Func took 1.5690326690674 microseconds<br />
Output for 5.5.32
Func took 1.5509128570557 microseconds<br />
Output for 5.5.31
Func took 2.0871162414551 microseconds<br />
Output for 5.5.30
Func took 1.3339519500732 microseconds<br />
Output for 5.5.29
Func took 1.3930797576904 microseconds<br />
Output for 5.5.27
Func took 1.4381408691406 microseconds<br />
Output for 5.5.26
Func took 1.4181137084961 microseconds<br />
Output for 5.5.25
Func took 1.5280246734619 microseconds<br />
Output for 5.5.24
Func took 1.3968944549561 microseconds<br />
Output for 5.5.22
Func took 1.4469623565674 microseconds<br />
Output for 5.5.21
Func took 1.4069080352783 microseconds<br />
Output for 5.5.20
Func took 1.6200542449951 microseconds<br />
Output for 5.5.19
Func took 1.6598701477051 microseconds<br />
Output for 5.5.18
Func took 1.6629695892334 microseconds<br />
Output for 5.5.17
Func took 1.7430782318115 microseconds<br />
Output for 5.5.16
Func took 1.4379024505615 microseconds<br />
Output for 5.5.15
Func took 1.77001953125 microseconds<br />
Output for 5.5.13 - 5.5.14
Func took 1.5079975128174 microseconds<br />
Output for 5.5.12
Func took 1.6100406646729 microseconds<br />
Output for 5.5.11
Func took 1.3179779052734 microseconds<br />
Output for 5.5.10
Func took 1.3489723205566 microseconds<br />
Output for 5.5.9
Func took 1.3539791107178 microseconds<br />
Output for 5.5.8
Func took 1.54709815979 microseconds<br />
Output for 5.5.7
Func took 1.6071796417236 microseconds<br />
Output for 5.5.6
Func took 1.6410350799561 microseconds<br />
Output for 5.5.5
Func took 2.9470920562744 microseconds<br />
Output for 5.5.4
Func took 2.8700828552246 microseconds<br />
Output for 5.5.3
Func took 2.730131149292 microseconds<br />
Output for 5.5.2
Func took 2.4800300598145 microseconds<br />
Output for 5.5.1
Func took 2.5510787963867 microseconds<br />
Output for 5.5.0
Func took 3.3929347991943 microseconds<br />
Output for 5.4.45
Func took 3.0629634857178 microseconds<br />
Output for 5.4.44
Func took 2.5579929351807 microseconds<br />
Output for 5.4.43
Func took 2.7148723602295 microseconds<br />
Output for 5.4.42
Func took 2.5348663330078 microseconds<br />
Output for 5.2.14, 5.4.41
Func took 2.8080940246582 microseconds<br />
Output for 5.4.40
Func took 3.9529800415039 microseconds<br />
Output for 5.4.39
Func took 2.6850700378418 microseconds<br />
Output for 5.4.38
Func took 2.6700496673584 microseconds<br />
Output for 5.4.37
Func took 3.9939880371094 microseconds<br />
Output for 5.4.36
Func took 3.9680004119873 microseconds<br />
Output for 5.4.35
Func took 2.6929378509521 microseconds<br />
Output for 5.4.34
Func took 3.5989284515381 microseconds<br />
Output for 5.4.33
Func took 2.7551651000977 microseconds<br />
Output for 5.4.32
Func took 2.7010440826416 microseconds<br />
Output for 5.4.31
Func took 2.6328563690186 microseconds<br />
Output for 5.4.30
Func took 3.0169486999512 microseconds<br />
Output for 5.4.29
Func took 3.9582252502441 microseconds<br />
Output for 5.4.28
Func took 3.633975982666 microseconds<br />
Output for 5.4.27
Func took 2.528190612793 microseconds<br />
Output for 5.4.26
Func took 3.2479763031006 microseconds<br />
Output for 5.4.25
Func took 2.8610229492188 microseconds<br />
Output for 5.4.6, 5.4.24
Func took 2.5959014892578 microseconds<br />
Output for 5.4.23
Func took 2.5589466094971 microseconds<br />
Output for 5.4.22
Func took 2.532958984375 microseconds<br />
Output for 5.4.21
Func took 3.2081604003906 microseconds<br />
Output for 5.4.20
Func took 2.9759407043457 microseconds<br />
Output for 5.4.19
Func took 2.8519630432129 microseconds<br />
Output for 5.4.18
Func took 2.4688243865967 microseconds<br />
Output for 5.4.17
Func took 2.4099349975586 microseconds<br />
Output for 5.4.16
Func took 3.3228397369385 microseconds<br />
Output for 5.4.15
Func took 3.8900375366211 microseconds<br />
Output for 5.4.14
Func took 3.0150413513184 microseconds<br />
Output for 5.4.13
Func took 3.7429332733154 microseconds<br />
Output for 5.4.12
Func took 3.046989440918 microseconds<br />
Output for 5.4.11
Func took 2.5820732116699 microseconds<br />
Output for 5.4.10
Func took 2.8691291809082 microseconds<br />
Output for 5.4.9
Func took 2.7918815612793 microseconds<br />
Output for 5.4.8
Func took 2.8481483459473 microseconds<br />
Output for 5.4.7
Func took 3.1208992004395 microseconds<br />
Output for 5.4.5
Func took 2.9599666595459 microseconds<br />
Output for 5.4.4
Func took 2.5570392608643 microseconds<br />
Output for 5.4.3
Func took 3.2229423522949 microseconds<br />
Output for 5.4.2
Func took 2.5041103363037 microseconds<br />
Output for 5.4.1
Func took 3.6299228668213 microseconds<br />
Output for 5.4.0
Func took 2.655029296875 microseconds<br />
Output for 5.3.29
Func took 2.3870468139648 microseconds<br />
Output for 5.3.17, 5.3.28
Func took 2.5060176849365 microseconds<br />
Output for 5.3.27
Func took 2.8061866760254 microseconds<br />
Output for 5.3.26
Func took 3.5421848297119 microseconds<br />
Output for 5.3.25
Func took 2.7091503143311 microseconds<br />
Output for 5.3.24
Func took 2.9292106628418 microseconds<br />
Output for 5.3.23
Func took 2.6600360870361 microseconds<br />
Output for 5.3.18, 5.3.22
Func took 3.0760765075684 microseconds<br />
Output for 5.3.21
Func took 2.4111270904541 microseconds<br />
Output for 5.3.20
Func took 2.8450489044189 microseconds<br />
Output for 5.3.19
Func took 2.3491382598877 microseconds<br />
Output for 5.3.16
Func took 2.6772022247314 microseconds<br />
Output for 5.3.15
Func took 2.5501251220703 microseconds<br />
Output for 5.3.14
Func took 2.5441646575928 microseconds<br />
Output for 5.3.13
Func took 2.5529861450195 microseconds<br />
Output for 5.3.12
Func took 2.5122165679932 microseconds<br />
Output for 5.3.11
Func took 3.3140182495117 microseconds<br />
Output for 5.3.10
Func took 3.1921863555908 microseconds<br />
Output for 5.3.9
Func took 3.0741691589355 microseconds<br />
Output for 5.3.8
Func took 2.6781558990479 microseconds<br />
Output for 5.3.7
Func took 2.5451183319092 microseconds<br />
Output for 5.3.6
Func took 2.5911331176758 microseconds<br />
Output for 5.3.5
Func took 2.485990524292 microseconds<br />
Output for 5.3.4
Func took 2.4921894073486 microseconds<br />
Output for 5.3.3
Func took 2.7492046356201 microseconds<br />
Output for 5.3.2
Func took 2.4330615997314 microseconds<br />
Output for 5.3.1
Func took 2.5219917297363 microseconds<br />
Output for 5.3.0
Func took 1.3220310211182 microseconds<br />
Output for 5.2.17
Func took 2.964973449707 microseconds<br />
Output for 5.2.16
Func took 3.148078918457 microseconds<br />
Output for 5.2.15
Func took 2.4211406707764 microseconds<br />
Output for 5.2.13
Func took 2.8281211853027 microseconds<br />
Output for 5.2.12
Func took 2.8719902038574 microseconds<br />
Output for 5.2.11
Func took 3.2169818878174 microseconds<br />
Output for 5.2.10
Func took 2.673864364624 microseconds<br />
Output for 5.2.9
Func took 3.068208694458 microseconds<br />
Output for 5.2.8
Func took 3.1669139862061 microseconds<br />
Output for 5.2.7
Func took 2.3679733276367 microseconds<br />
Output for 5.2.6
Func took 2.6071071624756 microseconds<br />
Output for 5.2.5
Func took 4.2581558227539 microseconds<br />
Output for 5.2.4
Func took 4.3070316314697 microseconds<br />
Output for 5.2.3
Func took 3.7479400634766 microseconds<br />
Output for 5.2.2
Func took 4.1990280151367 microseconds<br />
Output for 5.2.1
Func took 2.1979808807373 microseconds<br />
Output for 5.2.0
Func took 2.3441314697266 microseconds<br />
Output for 5.1.6
Func took 4.256010055542 microseconds<br />
Output for 5.1.5
Func took 4.310131072998 microseconds<br />
Output for 5.1.4
Func took 3.4558773040771 microseconds<br />
Output for 5.1.3
Func took 4.518985748291 microseconds<br />
Output for 5.1.2
Func took 3.5319328308105 microseconds<br />
Output for 5.1.1
Func took 3.5800933837891 microseconds<br />
Output for 5.1.0
Func took 4.2159557342529 microseconds<br />
Output for 5.0.5
Func took 3.5009384155273 microseconds<br />
Output for 5.0.4
Func took 3.5688877105713 microseconds<br />
Output for 5.0.3
Func took 2.8698444366455 microseconds<br />
Output for 5.0.2
Func took 4.6708583831787 microseconds<br />
Output for 5.0.1
Func took 3.0300617218018 microseconds<br />
Output for 5.0.0
Func took 2.7141571044922 microseconds<br />
Output for 4.4.9
Func took 4.379 microseconds<br />
Output for 4.4.8
Func took 4.615 microseconds<br />
Output for 4.4.7
Func took 4.286 microseconds<br />
Output for 4.4.6
Func took 5.077 microseconds<br />
Output for 4.4.5
Func took 3.475 microseconds<br />
Output for 4.4.4
Func took 4.387 microseconds<br />
Output for 4.4.3
Func took 4.966 microseconds<br />
Output for 4.4.2
Func took 4.794 microseconds<br />
Output for 4.4.1
Func took 4.446 microseconds<br />
Output for 4.4.0
Func took 4.808 microseconds<br />
Output for 4.3.11
Func took 4.039 microseconds<br />
Output for 4.3.10
Func took 3.723 microseconds<br />
Output for 4.3.9
Func took 3.975 microseconds<br />
Output for 4.3.8
Func took 3.991 microseconds<br />
Output for 4.3.7
Func took 2.699 microseconds<br />
Output for 4.3.6
Func took 3.551 microseconds<br />
Output for 4.3.5
Func took 2.432 microseconds<br />
Output for 4.3.4
Func took 2.403 microseconds<br />
Output for 4.3.3
Func took 2.608 microseconds<br />
Output for 4.3.2
Func took 2.84 microseconds<br />
Output for 4.3.1
Func took 2.901 microseconds<br />
Output for 4.3.0
Func took 2.661 microseconds<br />

preferences:
276.74 ms | 401 KiB | 325 Q