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; } 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.1.0
Func took 0.46300888061523 microseconds<br />
Output for 7.0.14
Func took 0.71406364440918 microseconds<br />
Output for 7.0.10
Func took 2.547025680542 microseconds<br />
Output for 7.0.9
Func took 9.774923324585 microseconds<br />
Output for 7.0.8
Func took 5.0199031829834 microseconds<br />
Output for 7.0.7
Func took 4.2991638183594 microseconds<br />
Output for 7.0.0, 7.0.6
Func took 0.6251335144043 microseconds<br />
Output for 7.0.5
Func took 0.55217742919922 microseconds<br />
Output for 7.0.4
Func took 0.72503089904785 microseconds<br />
Output for 7.0.3
Func took 0.69594383239746 microseconds<br />
Output for 7.0.2
Func took 0.75507164001465 microseconds<br />
Output for 7.0.1
Func took 0.66518783569336 microseconds<br />
Output for 5.6.28
Func took 3.1359195709229 microseconds<br />
Output for 5.6.25
Func took 1.8951892852783 microseconds<br />
Output for 5.6.24
Func took 1.6829967498779 microseconds<br />
Output for 5.6.23
Func took 1.9221305847168 microseconds<br />
Output for 5.6.22
Func took 2.2110939025879 microseconds<br />
Output for 5.6.21
Func took 1.7819404602051 microseconds<br />
Output for 5.6.20
Func took 1.9009113311768 microseconds<br />
Output for 5.6.19
Func took 1.7271041870117 microseconds<br />
Output for 5.6.18
Func took 2.3698806762695 microseconds<br />
Output for 5.6.17
Func took 2.2509098052979 microseconds<br />
Output for 5.6.16
Func took 2.3410320281982 microseconds<br />
Output for 5.6.15
Func took 2.7000904083252 microseconds<br />
Output for 5.6.14
Func took 3.1321048736572 microseconds<br />
Output for 5.6.13
Func took 2.8369426727295 microseconds<br />
Output for 5.6.12
Func took 2.4650096893311 microseconds<br />
Output for 5.6.11
Func took 3.0689239501953 microseconds<br />
Output for 5.6.10
Func took 2.0320415496826 microseconds<br />
Output for 5.6.9
Func took 2.2120475769043 microseconds<br />
Output for 5.6.8
Func took 2.4919509887695 microseconds<br />
Output for 5.6.7
Func took 3.1991004943848 microseconds<br />
Output for 5.6.6
Func took 2.8181076049805 microseconds<br />
Output for 5.6.5
Func took 2.4528503417969 microseconds<br />
Output for 5.6.4
Func took 2.5491714477539 microseconds<br />
Output for 5.6.3
Func took 3.0620098114014 microseconds<br />
Output for 5.6.2
Func took 3.3349990844727 microseconds<br />
Output for 5.6.1
Func took 2.6061534881592 microseconds<br />
Output for 5.6.0
Func took 2.8738975524902 microseconds<br />
Output for 5.5.38
Func took 1.9199848175049 microseconds<br />
Output for 5.5.37
Func took 1.6531944274902 microseconds<br />
Output for 5.5.36
Func took 1.7368793487549 microseconds<br />
Output for 5.5.35
Func took 2.2931098937988 microseconds<br />
Output for 5.5.34
Func took 1.8529891967773 microseconds<br />
Output for 5.5.33
Func took 1.8699169158936 microseconds<br />
Output for 5.5.32
Func took 3.0529499053955 microseconds<br />
Output for 5.5.31
Func took 2.4380683898926 microseconds<br />
Output for 5.5.30
Func took 3.0958652496338 microseconds<br />
Output for 5.5.29
Func took 3.2169818878174 microseconds<br />
Output for 5.5.28
Func took 2.5968551635742 microseconds<br />
Output for 5.5.27
Func took 2.8448104858398 microseconds<br />
Output for 5.5.26
Func took 2.6118755340576 microseconds<br />
Output for 5.5.25
Func took 3.0379295349121 microseconds<br />
Output for 5.5.24
Func took 2.5911331176758 microseconds<br />
Output for 5.5.23
Func took 2.810001373291 microseconds<br />
Output for 5.5.10, 5.5.22
Func took 2.471923828125 microseconds<br />
Output for 5.5.21
Func took 2.3040771484375 microseconds<br />
Output for 5.5.20
Func took 2.8979778289795 microseconds<br />
Output for 5.5.19
Func took 2.4130344390869 microseconds<br />
Output for 5.5.18
Func took 2.277135848999 microseconds<br />
Output for 5.5.16
Func took 2.8328895568848 microseconds<br />
Output for 5.5.15
Func took 2.9699802398682 microseconds<br />
Output for 5.5.14
Func took 3.1759738922119 microseconds<br />
Output for 5.5.13
Func took 2.781867980957 microseconds<br />
Output for 5.5.12
Func took 2.1378993988037 microseconds<br />
Output for 5.5.11
Func took 2.4590492248535 microseconds<br />
Output for 5.5.9
Func took 2.971887588501 microseconds<br />
Output for 5.5.8
Func took 2.8729438781738 microseconds<br />
Output for 5.5.7
Func took 2.2530555725098 microseconds<br />
Output for 5.5.6
Func took 2.2850036621094 microseconds<br />
Output for 5.5.5
Func took 4.7919750213623 microseconds<br />
Output for 5.5.4
Func took 4.8539638519287 microseconds<br />
Output for 5.5.3
Func took 4.500150680542 microseconds<br />
Output for 5.5.2
Func took 3.7858486175537 microseconds<br />
Output for 5.5.1
Func took 4.796028137207 microseconds<br />
Output for 5.5.0
Func took 5.3131580352783 microseconds<br />
Output for 5.4.45
Func took 5.4919719696045 microseconds<br />
Output for 5.4.44
Func took 5.2490234375 microseconds<br />
Output for 5.4.43
Func took 5.4090023040771 microseconds<br />
Output for 5.4.42
Func took 6.5100193023682 microseconds<br />
Output for 5.4.41
Func took 4.6088695526123 microseconds<br />
Output for 5.4.40
Func took 4.1580200195312 microseconds<br />
Output for 5.4.39
Func took 5.6371688842773 microseconds<br />
Output for 5.4.38
Func took 4.2610168457031 microseconds<br />
Output for 5.4.37
Func took 5.3517818450928 microseconds<br />
Output for 5.4.36
Func took 6.0479640960693 microseconds<br />
Output for 5.4.35
Func took 4.8680305480957 microseconds<br />
Output for 5.4.34
Func took 5.7649612426758 microseconds<br />
Output for 5.4.32
Func took 6.2251091003418 microseconds<br />
Output for 5.4.31
Func took 5.7060718536377 microseconds<br />
Output for 5.4.30
Func took 5.3508281707764 microseconds<br />
Output for 5.4.29
Func took 5.5611133575439 microseconds<br />
Output for 5.4.28
Func took 4.162073135376 microseconds<br />
Output for 5.4.27
Func took 4.1069984436035 microseconds<br />
Output for 5.4.26
Func took 4.101037979126 microseconds<br />
Output for 5.4.25
Func took 4.5151710510254 microseconds<br />
Output for 5.4.24
Func took 4.84299659729 microseconds<br />
Output for 5.4.23
Func took 3.9761066436768 microseconds<br />
Output for 5.4.22
Func took 4.2510032653809 microseconds<br />
Output for 5.4.21
Func took 4.1489601135254 microseconds<br />
Output for 5.4.20
Func took 4.2240619659424 microseconds<br />
Output for 5.4.19
Func took 6.058931350708 microseconds<br />
Output for 5.4.18
Func took 4.7268867492676 microseconds<br />
Output for 5.4.17
Func took 5.6211948394775 microseconds<br />
Output for 5.4.16
Func took 5.4619312286377 microseconds<br />
Output for 5.4.15
Func took 5.0301551818848 microseconds<br />
Output for 5.4.14
Func took 5.047082901001 microseconds<br />
Output for 5.4.13
Func took 4.5149326324463 microseconds<br />
Output for 5.4.12
Func took 6.2417984008789 microseconds<br />
Output for 5.4.11
Func took 4.6110153198242 microseconds<br />
Output for 5.4.10
Func took 5.4240226745605 microseconds<br />
Output for 5.4.9
Func took 5.5170059204102 microseconds<br />
Output for 5.4.8
Func took 5.6509971618652 microseconds<br />
Output for 5.4.7
Func took 4.2319297790527 microseconds<br />
Output for 5.4.6
Func took 4.8329830169678 microseconds<br />
Output for 5.4.5
Func took 4.8120021820068 microseconds<br />
Output for 5.4.4
Func took 6.152868270874 microseconds<br />
Output for 5.4.3
Func took 4.5199394226074 microseconds<br />
Output for 5.4.2
Func took 5.1779747009277 microseconds<br />
Output for 5.4.1
Func took 5.4810047149658 microseconds<br />
Output for 5.4.0
Func took 5.450963973999 microseconds<br />
Output for 5.3.29
Func took 4.6031475067139 microseconds<br />
Output for 5.3.28
Func took 3.9150714874268 microseconds<br />
Output for 5.3.27
Func took 4.7838687896729 microseconds<br />
Output for 5.3.26
Func took 5.1660537719727 microseconds<br />
Output for 5.3.25
Func took 4.0011405944824 microseconds<br />
Output for 5.3.24
Func took 4.6999454498291 microseconds<br />
Output for 5.3.23
Func took 4.6219825744629 microseconds<br />
Output for 5.3.22
Func took 5.1391124725342 microseconds<br />
Output for 5.3.21
Func took 5.2740573883057 microseconds<br />
Output for 5.3.20
Func took 5.2921772003174 microseconds<br />
Output for 5.3.19
Func took 5.4709911346436 microseconds<br />
Output for 5.3.18
Func took 4.6150684356689 microseconds<br />
Output for 5.3.17
Func took 4.4779777526855 microseconds<br />
Output for 5.3.16
Func took 4.6861171722412 microseconds<br />
Output for 5.3.15
Func took 5.0280094146729 microseconds<br />
Output for 5.3.14
Func took 4.3349266052246 microseconds<br />
Output for 5.3.13
Func took 5.0959587097168 microseconds<br />
Output for 5.3.12
Func took 4.5211315155029 microseconds<br />
Output for 5.3.11
Func took 4.0948390960693 microseconds<br />
Output for 5.3.10
Func took 5.950927734375 microseconds<br />
Output for 5.3.9
Func took 4.1561126708984 microseconds<br />
Output for 5.3.8
Func took 4.9898624420166 microseconds<br />
Output for 5.3.7
Func took 4.0609836578369 microseconds<br />
Output for 5.3.6
Func took 4.0519237518311 microseconds<br />
Output for 5.3.5
Func took 5.4450035095215 microseconds<br />
Output for 5.3.4
Func took 5.3079128265381 microseconds<br />
Output for 5.3.3
Func took 4.1730403900146 microseconds<br />
Output for 5.3.2
Func took 4.4739246368408 microseconds<br />
Output for 5.3.1
Func took 5.3369998931885 microseconds<br />
Output for 5.3.0
Func took 2.6559829711914 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.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.