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); $am = merging::merge($classmap1, $classmap2); $endTimeFunc = microtime(true); echo "Func took " . (($endTimeFunc - $startTimeFunc)*1000) ." microseconds<br />\n"; //var_dump($am);
Output for 7.4.0
Func took 0.88906288146973 microseconds<br />
Output for 7.2.25, 7.3.12
Func took 1.0461807250977 microseconds<br />
Output for 7.3.11
Func took 0.9009838104248 microseconds<br />
Output for 7.3.10
Func took 0.72216987609863 microseconds<br />
Output for 7.3.9
Func took 0.72717666625977 microseconds<br />
Output for 7.3.8
Func took 0.58507919311523 microseconds<br />
Output for 7.3.7
Func took 0.73099136352539 microseconds<br />
Output for 7.3.6
Func took 0.67520141601562 microseconds<br />
Output for 7.0.21, 7.3.5
Func took 0.64182281494141 microseconds<br />
Output for 7.3.4
Func took 0.63800811767578 microseconds<br />
Output for 7.3.3
Func took 0.60701370239258 microseconds<br />
Output for 7.3.2
Func took 0.46586990356445 microseconds<br />
Output for 7.3.1
Func took 0.53215026855469 microseconds<br />
Output for 7.3.0
Func took 0.47588348388672 microseconds<br />
Output for 7.2.24
Func took 1.0390281677246 microseconds<br />
Output for 7.2.23
Func took 0.66518783569336 microseconds<br />
Output for 7.2.22
Func took 0.62179565429688 microseconds<br />
Output for 7.2.21
Func took 0.63014030456543 microseconds<br />
Output for 7.2.20
Func took 0.9160041809082 microseconds<br />
Output for 7.2.19
Func took 0.6110668182373 microseconds<br />
Output for 7.2.18
Func took 0.79798698425293 microseconds<br />
Output for 7.2.17
Func took 0.57792663574219 microseconds<br />
Output for 7.0.20, 7.1.1, 7.2.16
Func took 0.6098747253418 microseconds<br />
Output for 7.2.15
Func took 0.30517578125 microseconds<br />
Output for 7.2.14
Func took 0.26178359985352 microseconds<br />
Output for 7.2.13
Func took 0.26607513427734 microseconds<br />
Output for 7.2.5, 7.2.12
Func took 0.27108192443848 microseconds<br />
Output for 7.2.4, 7.2.11
Func took 0.25796890258789 microseconds<br />
Output for 7.2.10
Func took 0.2598762512207 microseconds<br />
Output for 7.2.9
Func took 0.25606155395508 microseconds<br />
Output for 7.2.8
Func took 0.26702880859375 microseconds<br />
Output for 7.2.7
Func took 0.2901554107666 microseconds<br />
Output for 7.2.6
Func took 0.39386749267578 microseconds<br />
Output for 7.2.3
Func took 0.26512145996094 microseconds<br />
Output for 7.2.2
Func took 0.27799606323242 microseconds<br />
Output for 7.2.1
Func took 0.28800964355469 microseconds<br />
Output for 7.2.0
Func took 0.2601146697998 microseconds<br />
Output for 7.1.33
Func took 0.92720985412598 microseconds<br />
Output for 7.1.32
Func took 0.76699256896973 microseconds<br />
Output for 7.1.31
Func took 0.81706047058105 microseconds<br />
Output for 7.1.30
Func took 0.64992904663086 microseconds<br />
Output for 7.1.29
Func took 0.70500373840332 microseconds<br />
Output for 7.0.28, 7.1.15, 7.1.28
Func took 0.63705444335938 microseconds<br />
Output for 7.1.27
Func took 0.60796737670898 microseconds<br />
Output for 7.1.26
Func took 0.63395500183105 microseconds<br />
Output for 7.1.25
Func took 0.96893310546875 microseconds<br />
Output for 7.1.24
Func took 0.65398216247559 microseconds<br />
Output for 7.1.23
Func took 0.6711483001709 microseconds<br />
Output for 7.1.21 - 7.1.22
Func took 0.6558895111084 microseconds<br />
Output for 7.1.20
Func took 0.58102607727051 microseconds<br />
Output for 7.1.19
Func took 0.71001052856445 microseconds<br />
Output for 7.1.18
Func took 0.78511238098145 microseconds<br />
Output for 7.1.17
Func took 0.76913833618164 microseconds<br />
Output for 7.1.16
Func took 0.94985961914062 microseconds<br />
Output for 7.0.1, 7.1.14
Func took 0.68998336791992 microseconds<br />
Output for 7.1.13
Func took 0.70595741271973 microseconds<br />
Output for 7.0.12, 7.1.12
Func took 0.63300132751465 microseconds<br />
Output for 7.1.11
Func took 0.7178783416748 microseconds<br />
Output for 7.1.10
Func took 0.74195861816406 microseconds<br />
Output for 7.1.9
Func took 0.6859302520752 microseconds<br />
Output for 7.1.8
Func took 0.68306922912598 microseconds<br />
Output for 7.1.7
Func took 0.87213516235352 microseconds<br />
Output for 7.1.6
Func took 0.87499618530273 microseconds<br />
Output for 7.1.5
Func took 0.90217590332031 microseconds<br />
Output for 7.1.4
Func took 0.69212913513184 microseconds<br />
Output for 7.1.3
Func took 0.60009956359863 microseconds<br />
Output for 7.1.2
Func took 0.67996978759766 microseconds<br />
Output for 7.1.0
Func took 0.78916549682617 microseconds<br />
Output for 7.0.33
Func took 0.77009201049805 microseconds<br />
Output for 7.0.32
Func took 0.65183639526367 microseconds<br />
Output for 7.0.31
Func took 0.68902969360352 microseconds<br />
Output for 7.0.30
Func took 0.6260871887207 microseconds<br />
Output for 7.0.29
Func took 0.71597099304199 microseconds<br />
Output for 7.0.27
Func took 0.76389312744141 microseconds<br />
Output for 7.0.6, 7.0.26
Func took 0.66494941711426 microseconds<br />
Output for 7.0.25
Func took 0.58603286743164 microseconds<br />
Output for 7.0.24
Func took 0.69189071655273 microseconds<br />
Output for 7.0.23
Func took 0.65898895263672 microseconds<br />
Output for 7.0.22
Func took 0.60105323791504 microseconds<br />
Output for 7.0.19
Func took 0.77295303344727 microseconds<br />
Output for 7.0.18
Func took 0.74505805969238 microseconds<br />
Output for 7.0.17
Func took 0.67400932312012 microseconds<br />
Output for 7.0.3, 7.0.16
Func took 0.69904327392578 microseconds<br />
Output for 7.0.15
Func took 0.77509880065918 microseconds<br />
Output for 7.0.14
Func took 0.70810317993164 microseconds<br />
Output for 7.0.13
Func took 0.57101249694824 microseconds<br />
Output for 7.0.11
Func took 0.8089542388916 microseconds<br />
Output for 7.0.10
Func took 0.67901611328125 microseconds<br />
Output for 7.0.9
Func took 0.62394142150879 microseconds<br />
Output for 7.0.8
Func took 0.68783760070801 microseconds<br />
Output for 7.0.7
Func took 0.73409080505371 microseconds<br />
Output for 7.0.5
Func took 0.49495697021484 microseconds<br />
Output for 7.0.4
Func took 0.59199333190918 microseconds<br />
Output for 7.0.2
Func took 0.56815147399902 microseconds<br />
Output for 7.0.0
Func took 0.59318542480469 microseconds<br />
Output for 5.6.40
Func took 4.9991607666016 microseconds<br />
Output for 5.6.39
Func took 5.443811416626 microseconds<br />
Output for 5.6.38
Func took 6.1049461364746 microseconds<br />
Output for 5.6.37
Func took 6.0880184173584 microseconds<br />
Output for 5.6.36
Func took 4.9469470977783 microseconds<br />
Output for 5.6.35
Func took 5.0339698791504 microseconds<br />
Output for 5.6.34
Func took 5.1059722900391 microseconds<br />
Output for 5.6.33
Func took 5.094051361084 microseconds<br />
Output for 5.6.32
Func took 4.7821998596191 microseconds<br />
Output for 5.6.31
Func took 6.5829753875732 microseconds<br />
Output for 5.6.30
Func took 4.8539638519287 microseconds<br />
Output for 5.6.29
Func took 4.9479007720947 microseconds<br />
Output for 5.6.28
Func took 5.8078765869141 microseconds<br />
Output for 5.6.27
Func took 5.2218437194824 microseconds<br />
Output for 5.6.26
Func took 4.767894744873 microseconds<br />
Output for 5.6.25
Func took 5.0029754638672 microseconds<br />
Output for 5.6.24
Func took 5.1867961883545 microseconds<br />
Output for 5.6.23
Func took 5.3420066833496 microseconds<br />
Output for 5.6.22
Func took 4.9958229064941 microseconds<br />
Output for 5.6.21
Func took 5.9640407562256 microseconds<br />
Output for 5.6.20
Func took 4.7290325164795 microseconds<br />
Output for 5.6.19
Func took 5.6939125061035 microseconds<br />
Output for 5.6.18
Func took 4.7791004180908 microseconds<br />
Output for 5.6.17
Func took 5.2101612091064 microseconds<br />
Output for 5.6.16
Func took 7.5359344482422 microseconds<br />
Output for 5.6.15
Func took 7.5891017913818 microseconds<br />
Output for 5.6.14
Func took 6.0670375823975 microseconds<br />
Output for 5.6.13
Func took 5.1360130310059 microseconds<br />
Output for 5.6.12
Func took 6.3230991363525 microseconds<br />
Output for 5.4.25, 5.6.11
Func took 5.8989524841309 microseconds<br />
Output for 5.6.10
Func took 4.9350261688232 microseconds<br />
Output for 5.6.9
Func took 5.4681301116943 microseconds<br />
Output for 5.6.8
Func took 4.7562122344971 microseconds<br />
Output for 5.6.7
Func took 5.3448677062988 microseconds<br />
Output for 5.6.6
Func took 5.4540634155273 microseconds<br />
Output for 5.6.5
Func took 7.8349113464355 microseconds<br />
Output for 5.6.4
Func took 6.2720775604248 microseconds<br />
Output for 5.6.3
Func took 6.7708492279053 microseconds<br />
Output for 5.6.2
Func took 5.2628517150879 microseconds<br />
Output for 5.6.1
Func took 5.2139759063721 microseconds<br />
Output for 5.6.0
Func took 5.8600902557373 microseconds<br />
Output for 5.5.38
Func took 5.2940845489502 microseconds<br />
Output for 5.5.37
Func took 5.558967590332 microseconds<br />
Output for 5.5.36
Func took 5.479097366333 microseconds<br />
Output for 5.5.35
Func took 4.9118995666504 microseconds<br />
Output for 5.5.34
Func took 4.6389102935791 microseconds<br />
Output for 5.5.33
Func took 4.9848556518555 microseconds<br />
Output for 5.5.32
Func took 5.1171779632568 microseconds<br />
Output for 5.5.31
Func took 5.2459239959717 microseconds<br />
Output for 5.5.30
Func took 5.5480003356934 microseconds<br />
Output for 5.5.29
Func took 5.02610206604 microseconds<br />
Output for 5.5.28
Func took 5.3331851959229 microseconds<br />
Output for 5.5.27
Func took 5.3839683532715 microseconds<br />
Output for 5.3.2, 5.5.26
Func took 4.8460960388184 microseconds<br />
Output for 5.5.25
Func took 6.6118240356445 microseconds<br />
Output for 5.5.24
Func took 4.9140453338623 microseconds<br />
Output for 5.5.23
Func took 5.6700706481934 microseconds<br />
Output for 5.5.22
Func took 5.734920501709 microseconds<br />
Output for 5.5.21
Func took 5.3520202636719 microseconds<br />
Output for 5.5.20
Func took 6.0689449310303 microseconds<br />
Output for 5.4.12, 5.5.19
Func took 5.0280094146729 microseconds<br />
Output for 5.5.18
Func took 5.1980018615723 microseconds<br />
Output for 5.5.17
Func took 5.3958892822266 microseconds<br />
Output for 5.5.16
Func took 4.8379898071289 microseconds<br />
Output for 5.5.15
Func took 5.3730010986328 microseconds<br />
Output for 5.5.14
Func took 4.8010349273682 microseconds<br />
Output for 5.5.13
Func took 6.8619251251221 microseconds<br />
Output for 5.5.12
Func took 4.9841403961182 microseconds<br />
Output for 5.5.11
Func took 5.1889419555664 microseconds<br />
Output for 5.5.10
Func took 4.8699378967285 microseconds<br />
Output for 5.5.9
Func took 5.3050518035889 microseconds<br />
Output for 5.5.8
Func took 9.0489387512207 microseconds<br />
Output for 5.5.7
Func took 6.5970420837402 microseconds<br />
Output for 5.5.6
Func took 5.6591033935547 microseconds<br />
Output for 5.5.5
Func took 5.6331157684326 microseconds<br />
Output for 5.5.4
Func took 5.2988529205322 microseconds<br />
Output for 5.5.3
Func took 6.2439441680908 microseconds<br />
Output for 5.5.2
Func took 8.530855178833 microseconds<br />
Output for 5.5.1
Func took 7.7869892120361 microseconds<br />
Output for 5.5.0
Func took 5.4919719696045 microseconds<br />
Output for 5.4.45
Func took 5.4018497467041 microseconds<br />
Output for 5.4.44
Func took 5.1531791687012 microseconds<br />
Output for 5.4.43
Func took 4.6710968017578 microseconds<br />
Output for 5.4.42
Func took 5.3119659423828 microseconds<br />
Output for 5.4.41
Func took 6.0050487518311 microseconds<br />
Output for 5.4.40
Func took 6.065845489502 microseconds<br />
Output for 5.4.39
Func took 5.2239894866943 microseconds<br />
Output for 5.4.38
Func took 5.7470798492432 microseconds<br />
Output for 5.4.37
Func took 7.01904296875 microseconds<br />
Output for 5.4.36
Func took 5.5620670318604 microseconds<br />
Output for 5.4.35
Func took 4.7450065612793 microseconds<br />
Output for 5.4.34
Func took 5.9940814971924 microseconds<br />
Output for 5.4.33
Func took 6.3850879669189 microseconds<br />
Output for 5.4.32
Func took 5.0740242004395 microseconds<br />
Output for 5.4.31
Func took 5.7277679443359 microseconds<br />
Output for 5.4.30
Func took 4.8718452453613 microseconds<br />
Output for 5.4.29
Func took 5.3069591522217 microseconds<br />
Output for 5.4.28
Func took 5.6388378143311 microseconds<br />
Output for 5.4.27
Func took 4.9970149993896 microseconds<br />
Output for 5.4.26
Func took 5.0139427185059 microseconds<br />
Output for 5.4.24
Func took 6.1328411102295 microseconds<br />
Output for 5.4.23
Func took 8.5968971252441 microseconds<br />
Output for 5.4.22
Func took 4.8828125 microseconds<br />
Output for 5.4.21
Func took 4.9030780792236 microseconds<br />
Output for 5.4.1, 5.4.20
Func took 5.2499771118164 microseconds<br />
Output for 5.4.19
Func took 5.3341388702393 microseconds<br />
Output for 5.4.18
Func took 8.6121559143066 microseconds<br />
Output for 5.4.17
Func took 4.9819946289062 microseconds<br />
Output for 5.3.11, 5.4.16
Func took 5.0020217895508 microseconds<br />
Output for 5.4.15
Func took 5.5241584777832 microseconds<br />
Output for 5.4.14
Func took 5.126953125 microseconds<br />
Output for 5.4.13
Func took 6.727933883667 microseconds<br />
Output for 5.4.11
Func took 6.1089992523193 microseconds<br />
Output for 5.4.10
Func took 5.526065826416 microseconds<br />
Output for 5.4.9
Func took 5.681037902832 microseconds<br />
Output for 5.4.8
Func took 5.1069259643555 microseconds<br />
Output for 5.4.7
Func took 5.7621002197266 microseconds<br />
Output for 5.4.6
Func took 5.4049491882324 microseconds<br />
Output for 5.4.5
Func took 6.1869621276855 microseconds<br />
Output for 5.4.4
Func took 4.9359798431396 microseconds<br />
Output for 5.4.3
Func took 5.1548480987549 microseconds<br />
Output for 5.4.2
Func took 4.9090385437012 microseconds<br />
Output for 5.4.0
Func took 4.9910545349121 microseconds<br />
Output for 5.3.29
Func took 5.2781105041504 microseconds<br />
Output for 5.3.28
Func took 6.1731338500977 microseconds<br />
Output for 5.3.27
Func took 5.2812099456787 microseconds<br />
Output for 5.3.26
Func took 4.953145980835 microseconds<br />
Output for 5.3.25
Func took 5.1631927490234 microseconds<br />
Output for 5.3.24
Func took 6.3459873199463 microseconds<br />
Output for 5.3.23
Func took 5.4659843444824 microseconds<br />
Output for 5.3.22
Func took 5.4361820220947 microseconds<br />
Output for 5.3.21
Func took 5.5551528930664 microseconds<br />
Output for 5.3.20
Func took 5.7651996612549 microseconds<br />
Output for 5.3.19
Func took 5.4001808166504 microseconds<br />
Output for 5.3.18
Func took 4.817008972168 microseconds<br />
Output for 5.3.17
Func took 5.2120685577393 microseconds<br />
Output for 5.3.16
Func took 6.7660808563232 microseconds<br />
Output for 5.3.15
Func took 5.6750774383545 microseconds<br />
Output for 5.3.14
Func took 5.18798828125 microseconds<br />
Output for 5.3.13
Func took 4.8332214355469 microseconds<br />
Output for 5.3.12
Func took 4.8041343688965 microseconds<br />
Output for 5.3.10
Func took 5.2900314331055 microseconds<br />
Output for 5.3.9
Func took 5.0270557403564 microseconds<br />
Output for 5.3.8
Func took 4.824161529541 microseconds<br />
Output for 5.3.7
Func took 4.4760704040527 microseconds<br />
Output for 5.3.6
Func took 4.7299861907959 microseconds<br />
Output for 5.3.5
Func took 4.7371387481689 microseconds<br />
Output for 5.3.4
Func took 5.1331520080566 microseconds<br />
Output for 5.3.3
Func took 6.7131519317627 microseconds<br />
Output for 5.3.1
Func took 4.6801567077637 microseconds<br />
Output for 5.3.0
Func took 4.6360492706299 microseconds<br />
Output for 5.2.17
Func took 4.4188499450684 microseconds<br />
Output for 5.2.16
Func took 5.6660175323486 microseconds<br />
Output for 5.2.15
Func took 3.838062286377 microseconds<br />
Output for 5.2.14
Func took 4.3570995330811 microseconds<br />
Output for 5.2.13
Func took 6.0508251190186 microseconds<br />
Output for 5.2.12
Func took 5.4399967193604 microseconds<br />
Output for 5.2.11
Func took 4.9490928649902 microseconds<br />
Output for 5.2.10
Func took 4.2221546173096 microseconds<br />
Output for 5.2.9
Func took 5.5789947509766 microseconds<br />
Output for 5.2.8
Func took 4.4770240783691 microseconds<br />
Output for 5.2.7
Func took 3.7550926208496 microseconds<br />
Output for 5.2.6
Func took 4.7001838684082 microseconds<br />
Output for 5.2.5
Func took 6.9539546966553 microseconds<br />
Output for 5.2.4
Func took 6.9379806518555 microseconds<br />
Output for 5.2.3
Func took 6.61301612854 microseconds<br />
Output for 5.2.2
Func took 6.3409805297852 microseconds<br />
Output for 5.2.1
Func took 5.3780078887939 microseconds<br />
Output for 5.2.0
Func took 3.4120082855225 microseconds<br />
Output for 5.1.6
Func took 8.1369876861572 microseconds<br />
Output for 5.1.5
Func took 6.4020156860352 microseconds<br />
Output for 5.1.4
Func took 6.850004196167 microseconds<br />
Output for 5.1.3
Func took 7.2150230407715 microseconds<br />
Output for 5.1.2
Func took 7.850170135498 microseconds<br />
Output for 5.1.1
Func took 4.993200302124 microseconds<br />
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/VYSS5 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/VYSS5 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/VYSS5 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/VYSS5 on line 14
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VYSS5 on line 14
Process exited with code 255.

preferences:
216.61 ms | 401 KiB | 322 Q