3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classmap1 = array(); for ($i=1; $i<=10000; $i++) { $classmap1['a'.$i] = $i+1; } $classmap2 = array(); for ($i=1; $i<=10000; $i++) { $classmap2['b'.$i] = $i+1; } abstract class merging { public static function merge(array $a, array $b) { return array_merge($a, $b); } } $startTimeFunc = microtime(true); merging::merge($classmap1, $classmap2); $endTimeFunc = microtime(true); echo "Func took " . (($endTimeFunc - $startTimeFunc)*1000) ." microseconds<br />\n"; //var_dump($am);
Output for 7.4.1
Func took 1.2130737304688 microseconds<br />
Output for 7.4.0
Func took 1.1458396911621 microseconds<br />
Output for 7.3.13
Func took 1.215934753418 microseconds<br />
Output for 7.3.12
Func took 1.2021064758301 microseconds<br />
Output for 7.3.11
Func took 0.86092948913574 microseconds<br />
Output for 7.3.10
Func took 0.91695785522461 microseconds<br />
Output for 7.3.9
Func took 0.82015991210938 microseconds<br />
Output for 7.3.8
Func took 0.78701972961426 microseconds<br />
Output for 7.3.7
Func took 0.75221061706543 microseconds<br />
Output for 7.3.6
Func took 1.0640621185303 microseconds<br />
Output for 7.1.8, 7.3.5
Func took 0.80585479736328 microseconds<br />
Output for 7.0.20, 7.1.1, 7.3.4
Func took 0.78010559082031 microseconds<br />
Output for 7.1.21, 7.3.3
Func took 0.78392028808594 microseconds<br />
Output for 7.3.2
Func took 0.59199333190918 microseconds<br />
Output for 7.3.1
Func took 0.63705444335938 microseconds<br />
Output for 7.3.0
Func took 0.65493583679199 microseconds<br />
Output for 7.2.26
Func took 1.0361671447754 microseconds<br />
Output for 7.2.25
Func took 1.1100769042969 microseconds<br />
Output for 7.2.24
Func took 1.5401840209961 microseconds<br />
Output for 7.2.23
Func took 0.69904327392578 microseconds<br />
Output for 7.2.22
Func took 0.71907043457031 microseconds<br />
Output for 7.2.21
Func took 0.9608268737793 microseconds<br />
Output for 7.2.20
Func took 18.311977386475 microseconds<br />
Output for 7.0.18, 7.2.19
Func took 0.79202651977539 microseconds<br />
Output for 7.2.18
Func took 0.67901611328125 microseconds<br />
Output for 7.2.17
Func took 0.74601173400879 microseconds<br />
Output for 7.2.16
Func took 0.67496299743652 microseconds<br />
Output for 7.2.15
Func took 0.50806999206543 microseconds<br />
Output for 7.2.14
Func took 0.37407875061035 microseconds<br />
Output for 7.2.13
Func took 0.38599967956543 microseconds<br />
Output for 7.2.12
Func took 0.34499168395996 microseconds<br />
Output for 7.2.11
Func took 0.38003921508789 microseconds<br />
Output for 7.2.0, 7.2.10
Func took 0.37312507629395 microseconds<br />
Output for 7.2.9
Func took 0.36191940307617 microseconds<br />
Output for 7.2.8
Func took 0.52714347839355 microseconds<br />
Output for 7.2.7
Func took 0.36001205444336 microseconds<br />
Output for 7.2.6
Func took 0.4878044128418 microseconds<br />
Output for 7.2.5
Func took 0.52189826965332 microseconds<br />
Output for 7.2.4
Func took 0.34713745117188 microseconds<br />
Output for 7.2.3
Func took 0.47397613525391 microseconds<br />
Output for 7.2.2
Func took 0.60200691223145 microseconds<br />
Output for 7.2.1
Func took 0.40912628173828 microseconds<br />
Output for 7.1.33
Func took 0.86188316345215 microseconds<br />
Output for 7.1.32
Func took 0.81396102905273 microseconds<br />
Output for 7.1.31
Func took 0.75912475585938 microseconds<br />
Output for 7.1.30
Func took 0.72693824768066 microseconds<br />
Output for 7.1.29
Func took 1.0209083557129 microseconds<br />
Output for 7.1.28
Func took 0.91314315795898 microseconds<br />
Output for 7.1.5, 7.1.14, 7.1.27
Func took 0.73599815368652 microseconds<br />
Output for 7.1.26
Func took 0.98705291748047 microseconds<br />
Output for 7.1.25
Func took 0.83780288696289 microseconds<br />
Output for 7.1.24
Func took 0.85210800170898 microseconds<br />
Output for 7.1.23
Func took 0.74505805969238 microseconds<br />
Output for 7.1.22
Func took 0.74291229248047 microseconds<br />
Output for 7.1.20
Func took 1.0650157928467 microseconds<br />
Output for 7.1.19
Func took 0.82206726074219 microseconds<br />
Output for 7.1.18
Func took 0.79107284545898 microseconds<br />
Output for 7.1.17
Func took 0.72383880615234 microseconds<br />
Output for 7.1.16
Func took 0.86688995361328 microseconds<br />
Output for 7.0.0, 7.1.15
Func took 0.9911060333252 microseconds<br />
Output for 7.1.13
Func took 0.84614753723145 microseconds<br />
Output for 7.1.12
Func took 0.95915794372559 microseconds<br />
Output for 7.1.11
Func took 0.64277648925781 microseconds<br />
Output for 7.1.10
Func took 0.78082084655762 microseconds<br />
Output for 7.1.9
Func took 0.71501731872559 microseconds<br />
Output for 7.1.7
Func took 0.69785118103027 microseconds<br />
Output for 7.1.6
Func took 0.83494186401367 microseconds<br />
Output for 7.1.4
Func took 0.75411796569824 microseconds<br />
Output for 7.1.3
Func took 0.7779598236084 microseconds<br />
Output for 7.1.2
Func took 0.79607963562012 microseconds<br />
Output for 7.1.0
Func took 0.7789134979248 microseconds<br />
Output for 7.0.33
Func took 0.7479190826416 microseconds<br />
Output for 7.0.32
Func took 0.75197219848633 microseconds<br />
Output for 7.0.31
Func took 0.88405609130859 microseconds<br />
Output for 7.0.30
Func took 0.66399574279785 microseconds<br />
Output for 7.0.29
Func took 0.87118148803711 microseconds<br />
Output for 7.0.28
Func took 0.91004371643066 microseconds<br />
Output for 7.0.7, 7.0.27
Func took 0.76389312744141 microseconds<br />
Output for 7.0.19, 7.0.26
Func took 0.70095062255859 microseconds<br />
Output for 7.0.25
Func took 0.72503089904785 microseconds<br />
Output for 7.0.24
Func took 0.69212913513184 microseconds<br />
Output for 7.0.23
Func took 0.80084800720215 microseconds<br />
Output for 7.0.22
Func took 0.87785720825195 microseconds<br />
Output for 7.0.21
Func took 1.0089874267578 microseconds<br />
Output for 7.0.17
Func took 0.74195861816406 microseconds<br />
Output for 7.0.16
Func took 0.72813034057617 microseconds<br />
Output for 7.0.15
Func took 0.98800659179688 microseconds<br />
Output for 7.0.14
Func took 0.77295303344727 microseconds<br />
Output for 7.0.13
Func took 0.88095664978027 microseconds<br />
Output for 7.0.12
Func took 0.72908401489258 microseconds<br />
Output for 7.0.11
Func took 1.24192237854 microseconds<br />
Output for 7.0.8, 7.0.10
Func took 0.69713592529297 microseconds<br />
Output for 7.0.9
Func took 0.98109245300293 microseconds<br />
Output for 7.0.6
Func took 0.78797340393066 microseconds<br />
Output for 7.0.5
Func took 0.75387954711914 microseconds<br />
Output for 7.0.4
Func took 0.7328987121582 microseconds<br />
Output for 7.0.3
Func took 0.73695182800293 microseconds<br />
Output for 7.0.2
Func took 0.72097778320312 microseconds<br />
Output for 7.0.1
Func took 0.94008445739746 microseconds<br />
Output for 5.6.40
Func took 3.2739639282227 microseconds<br />
Output for 5.6.39
Func took 3.1099319458008 microseconds<br />
Output for 5.6.38
Func took 2.8960704803467 microseconds<br />
Output for 5.6.37
Func took 3.9169788360596 microseconds<br />
Output for 5.6.36
Func took 3.140926361084 microseconds<br />
Output for 5.6.35
Func took 4.3590068817139 microseconds<br />
Output for 5.6.34
Func took 3.2439231872559 microseconds<br />
Output for 5.6.33
Func took 3.1960010528564 microseconds<br />
Output for 5.6.32
Func took 3.0291080474854 microseconds<br />
Output for 5.6.31
Func took 3.0069351196289 microseconds<br />
Output for 5.6.30
Func took 2.8789043426514 microseconds<br />
Output for 5.6.27, 5.6.29
Func took 3.3960342407227 microseconds<br />
Output for 5.6.28
Func took 3.0989646911621 microseconds<br />
Output for 5.6.26
Func took 3.2639503479004 microseconds<br />
Output for 5.6.25
Func took 2.7928352355957 microseconds<br />
Output for 5.6.24
Func took 3.1800270080566 microseconds<br />
Output for 5.6.23
Func took 3.3679008483887 microseconds<br />
Output for 5.6.22
Func took 3.5459995269775 microseconds<br />
Output for 5.6.21
Func took 2.9640197753906 microseconds<br />
Output for 5.6.20
Func took 4.5549869537354 microseconds<br />
Output for 5.6.19
Func took 3.2567977905273 microseconds<br />
Output for 5.6.18
Func took 3.5171508789062 microseconds<br />
Output for 5.6.17
Func took 3.1330585479736 microseconds<br />
Output for 5.6.16
Func took 2.9120445251465 microseconds<br />
Output for 5.6.15
Func took 2.7439594268799 microseconds<br />
Output for 5.6.14
Func took 2.7990341186523 microseconds<br />
Output for 5.6.13
Func took 2.8541088104248 microseconds<br />
Output for 5.6.12
Func took 3.2122135162354 microseconds<br />
Output for 5.6.11
Func took 3.3369064331055 microseconds<br />
Output for 5.6.10
Func took 3.1719207763672 microseconds<br />
Output for 5.6.9
Func took 3.6149024963379 microseconds<br />
Output for 5.6.8
Func took 2.8841495513916 microseconds<br />
Output for 5.6.7
Func took 3.4041404724121 microseconds<br />
Output for 5.6.6
Func took 3.0169486999512 microseconds<br />
Output for 5.6.5
Func took 3.6051273345947 microseconds<br />
Output for 5.6.4
Func took 3.4439563751221 microseconds<br />
Output for 5.6.3
Func took 2.9330253601074 microseconds<br />
Output for 5.6.2
Func took 3.0050277709961 microseconds<br />
Output for 5.6.1
Func took 2.9709339141846 microseconds<br />
Output for 5.6.0
Func took 3.2157897949219 microseconds<br />
Output for 5.5.38
Func took 3.1979084014893 microseconds<br />
Output for 5.5.37
Func took 2.8579235076904 microseconds<br />
Output for 5.5.36
Func took 3.2708644866943 microseconds<br />
Output for 5.5.35
Func took 3.0159950256348 microseconds<br />
Output for 5.5.34
Func took 2.9070377349854 microseconds<br />
Output for 5.5.33
Func took 2.8150081634521 microseconds<br />
Output for 5.5.32
Func took 2.9819011688232 microseconds<br />
Output for 5.5.31
Func took 3.0858516693115 microseconds<br />
Output for 5.5.30
Func took 3.4949779510498 microseconds<br />
Output for 5.5.29
Func took 3.5080909729004 microseconds<br />
Output for 5.5.28
Func took 2.8419494628906 microseconds<br />
Output for 5.5.27
Func took 2.8209686279297 microseconds<br />
Output for 5.5.26
Func took 2.810001373291 microseconds<br />
Output for 5.5.25
Func took 2.8748512268066 microseconds<br />
Output for 5.5.24
Func took 2.877950668335 microseconds<br />
Output for 5.5.23
Func took 2.9411315917969 microseconds<br />
Output for 5.5.22
Func took 3.4270286560059 microseconds<br />
Output for 5.5.21
Func took 3.0279159545898 microseconds<br />
Output for 5.5.20
Func took 2.9690265655518 microseconds<br />
Output for 5.5.19
Func took 3.2880306243896 microseconds<br />
Output for 5.5.18
Func took 3.1671524047852 microseconds<br />
Output for 5.5.17
Func took 3.0040740966797 microseconds<br />
Output for 5.5.16
Func took 3.5331249237061 microseconds<br />
Output for 5.5.15
Func took 3.2188892364502 microseconds<br />
Output for 5.5.14
Func took 3.1411647796631 microseconds<br />
Output for 5.5.13
Func took 3.0031204223633 microseconds<br />
Output for 5.5.12
Func took 2.8719902038574 microseconds<br />
Output for 5.5.11
Func took 2.9370784759521 microseconds<br />
Output for 5.5.10
Func took 3.2999515533447 microseconds<br />
Output for 5.5.9
Func took 3.8959980010986 microseconds<br />
Output for 5.5.8
Func took 3.3590793609619 microseconds<br />
Output for 5.5.7
Func took 2.9881000518799 microseconds<br />
Output for 5.5.6
Func took 3.2269954681396 microseconds<br />
Output for 5.5.5
Func took 6.054162979126 microseconds<br />
Output for 5.5.4
Func took 5.9230327606201 microseconds<br />
Output for 5.5.3
Func took 6.8080425262451 microseconds<br />
Output for 5.5.2
Func took 6.4358711242676 microseconds<br />
Output for 5.5.1
Func took 6.1309337615967 microseconds<br />
Output for 5.5.0
Func took 7.0400238037109 microseconds<br />
Output for 5.4.45
Func took 5.5050849914551 microseconds<br />
Output for 5.4.44
Func took 6.6537857055664 microseconds<br />
Output for 5.4.43
Func took 5.6250095367432 microseconds<br />
Output for 5.4.42
Func took 5.5780410766602 microseconds<br />
Output for 5.4.33, 5.4.41
Func took 5.2618980407715 microseconds<br />
Output for 5.4.40
Func took 5.3129196166992 microseconds<br />
Output for 5.4.39
Func took 5.5150985717773 microseconds<br />
Output for 5.4.38
Func took 5.4759979248047 microseconds<br />
Output for 5.4.37
Func took 6.7300796508789 microseconds<br />
Output for 5.4.36
Func took 28.073072433472 microseconds<br />
Output for 5.3.25, 5.4.35
Func took 5.5069923400879 microseconds<br />
Output for 5.4.34
Func took 7.2510242462158 microseconds<br />
Output for 5.4.32
Func took 6.7720413208008 microseconds<br />
Output for 5.4.31
Func took 8.8422298431396 microseconds<br />
Output for 5.4.30
Func took 8.5630416870117 microseconds<br />
Output for 5.4.29
Func took 5.4528713226318 microseconds<br />
Output for 5.4.28
Func took 5.8889389038086 microseconds<br />
Output for 5.4.27
Func took 5.6891441345215 microseconds<br />
Output for 5.4.26
Func took 6.1290264129639 microseconds<br />
Output for 5.4.25
Func took 5.5410861968994 microseconds<br />
Output for 5.4.8, 5.4.24
Func took 5.2969455718994 microseconds<br />
Output for 5.4.23
Func took 5.3579807281494 microseconds<br />
Output for 5.4.22
Func took 5.9568881988525 microseconds<br />
Output for 5.4.21
Func took 5.8238506317139 microseconds<br />
Output for 5.4.20
Func took 5.7621002197266 microseconds<br />
Output for 5.4.19
Func took 5.7079792022705 microseconds<br />
Output for 5.4.18
Func took 6.0000419616699 microseconds<br />
Output for 5.4.13, 5.4.17
Func took 5.4030418395996 microseconds<br />
Output for 5.4.16
Func took 5.4709911346436 microseconds<br />
Output for 5.4.15
Func took 5.5768489837646 microseconds<br />
Output for 5.4.14
Func took 5.713939666748 microseconds<br />
Output for 5.4.12
Func took 8.4481239318848 microseconds<br />
Output for 5.4.11
Func took 5.9700012207031 microseconds<br />
Output for 5.4.10
Func took 6.0439109802246 microseconds<br />
Output for 5.4.9
Func took 5.2750110626221 microseconds<br />
Output for 5.4.7
Func took 5.4721832275391 microseconds<br />
Output for 5.4.6
Func took 6.4270496368408 microseconds<br />
Output for 5.4.5
Func took 8.4447860717773 microseconds<br />
Output for 5.4.4
Func took 5.5408477783203 microseconds<br />
Output for 5.4.3
Func took 5.8038234710693 microseconds<br />
Output for 5.4.2
Func took 5.4190158843994 microseconds<br />
Output for 5.4.1
Func took 6.0980319976807 microseconds<br />
Output for 5.4.0
Func took 5.9738159179688 microseconds<br />
Output for 5.3.29
Func took 5.5379867553711 microseconds<br />
Output for 5.3.28
Func took 6.5951347351074 microseconds<br />
Output for 5.3.27
Func took 5.5241584777832 microseconds<br />
Output for 5.3.26
Func took 5.3150653839111 microseconds<br />
Output for 5.3.24
Func took 5.2921772003174 microseconds<br />
Output for 5.3.23
Func took 8.1701278686523 microseconds<br />
Output for 5.3.22
Func took 5.3410530090332 microseconds<br />
Output for 5.3.21
Func took 5.8650970458984 microseconds<br />
Output for 5.3.20
Func took 5.620002746582 microseconds<br />
Output for 5.3.19
Func took 5.1300525665283 microseconds<br />
Output for 5.3.18
Func took 5.3801536560059 microseconds<br />
Output for 5.3.17
Func took 5.230188369751 microseconds<br />
Output for 5.3.16
Func took 5.3651332855225 microseconds<br />
Output for 5.3.15
Func took 6.2401294708252 microseconds<br />
Output for 5.3.14
Func took 5.08713722229 microseconds<br />
Output for 5.3.13
Func took 6.1490535736084 microseconds<br />
Output for 5.3.12
Func took 5.8350563049316 microseconds<br />
Output for 5.3.11
Func took 7.0500373840332 microseconds<br />
Output for 5.3.10
Func took 5.6300163269043 microseconds<br />
Output for 5.3.9
Func took 5.7780742645264 microseconds<br />
Output for 5.3.8
Func took 6.6361427307129 microseconds<br />
Output for 5.3.7
Func took 5.6211948394775 microseconds<br />
Output for 5.3.6
Func took 5.8832168579102 microseconds<br />
Output for 5.3.5
Func took 6.8070888519287 microseconds<br />
Output for 5.3.4
Func took 7.1811676025391 microseconds<br />
Output for 5.3.3
Func took 5.8400630950928 microseconds<br />
Output for 5.3.2
Func took 6.0920715332031 microseconds<br />
Output for 5.3.1
Func took 5.810022354126 microseconds<br />
Output for 5.3.0
Func took 2.9671192169189 microseconds<br />
Output for 5.2.17
Func took 4.5769214630127 microseconds<br />
Output for 5.2.16
Func took 4.2769908905029 microseconds<br />
Output for 5.2.15
Func took 5.6149959564209 microseconds<br />
Output for 5.2.14
Func took 5.3961277008057 microseconds<br />
Output for 5.2.13
Func took 5.8870315551758 microseconds<br />
Output for 5.2.12
Func took 6.0830116271973 microseconds<br />
Output for 5.2.11
Func took 5.3908824920654 microseconds<br />
Output for 5.2.10
Func took 4.5430660247803 microseconds<br />
Output for 5.2.9
Func took 4.967212677002 microseconds<br />
Output for 5.2.8
Func took 5.357027053833 microseconds<br />
Output for 5.2.7
Func took 6.0999393463135 microseconds<br />
Output for 5.2.6
Func took 5.6748390197754 microseconds<br />
Output for 5.2.5
Func took 5.4750442504883 microseconds<br />
Output for 5.2.4
Func took 8.0330371856689 microseconds<br />
Output for 5.2.3
Func took 7.0939064025879 microseconds<br />
Output for 5.2.2
Func took 6.7269802093506 microseconds<br />
Output for 5.2.1
Func took 5.0408840179443 microseconds<br />
Output for 5.2.0
Func took 5.3009986877441 microseconds<br />
Output for 5.1.6
Func took 6.9742202758789 microseconds<br />
Output for 5.1.5
Func took 6.3679218292236 microseconds<br />
Output for 5.1.4
Func took 7.3750019073486 microseconds<br />
Output for 5.1.3
Func took 8.0740451812744 microseconds<br />
Output for 5.1.2
Func took 7.4849128723145 microseconds<br />
Output for 5.1.1
Func took 6.4918994903564 microseconds<br />
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/hG8Jc on line 25
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /in/hG8Jc on line 15
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_CLASS in /in/hG8Jc on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_CLASS in /in/hG8Jc on line 14
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/hG8Jc on line 14
Process exited with code 255.

preferences:
227.03 ms | 401 KiB | 325 Q