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.4420280456543 microseconds<br />
Output for 7.0.14
Func took 0.7178783416748 microseconds<br />
Output for 7.0.10
Func took 1.0509490966797 microseconds<br />
Output for 7.0.9
Func took 1.0190010070801 microseconds<br />
Output for 7.0.8
Func took 0.66685676574707 microseconds<br />
Output for 7.0.7
Func took 1.0230541229248 microseconds<br />
Output for 7.0.6
Func took 1.0960102081299 microseconds<br />
Output for 7.0.5
Func took 0.83303451538086 microseconds<br />
Output for 7.0.4
Func took 0.73695182800293 microseconds<br />
Output for 7.0.3
Func took 0.86092948913574 microseconds<br />
Output for 7.0.2
Func took 0.73003768920898 microseconds<br />
Output for 7.0.1
Func took 0.89788436889648 microseconds<br />
Output for 7.0.0
Func took 0.85687637329102 microseconds<br />
Output for hhvm-3.12.0
Func took 0.94008445739746 microseconds<br />
Output for hhvm-3.10.0
Func took 0.90599060058594 microseconds<br />
Output for 5.6.28
Func took 5.6769847869873 microseconds<br />
Output for 5.6.25
Func took 6.1790943145752 microseconds<br />
Output for 5.6.24
Func took 4.0960311889648 microseconds<br />
Output for 5.6.23
Func took 5.1748752593994 microseconds<br />
Output for 5.6.22
Func took 4.00710105896 microseconds<br />
Output for 5.6.21
Func took 5.573034286499 microseconds<br />
Output for 5.6.20
Func took 4.6939849853516 microseconds<br />
Output for 5.6.19
Func took 4.2500495910645 microseconds<br />
Output for 5.6.18
Func took 5.3219795227051 microseconds<br />
Output for 5.5.31, 5.6.17
Func took 5.3510665893555 microseconds<br />
Output for 5.6.16
Func took 4.8069953918457 microseconds<br />
Output for 5.6.15
Func took 6.1130523681641 microseconds<br />
Output for 5.6.14
Func took 5.7621002197266 microseconds<br />
Output for 5.6.13
Func took 6.9868564605713 microseconds<br />
Output for 5.6.12
Func took 5.3410530090332 microseconds<br />
Output for 5.6.11
Func took 5.1050186157227 microseconds<br />
Output for 5.6.10
Func took 6.187915802002 microseconds<br />
Output for 5.6.9
Func took 4.828929901123 microseconds<br />
Output for 5.6.8
Func took 4.7500133514404 microseconds<br />
Output for 5.6.7
Func took 6.2150955200195 microseconds<br />
Output for 5.6.6
Func took 5.5999755859375 microseconds<br />
Output for 5.6.5
Func took 5.1200389862061 microseconds<br />
Output for 5.6.4
Func took 4.9278736114502 microseconds<br />
Output for 5.2.10, 5.6.3
Func took 5.695104598999 microseconds<br />
Output for 5.6.2
Func took 5.335807800293 microseconds<br />
Output for 5.6.1
Func took 4.4381618499756 microseconds<br />
Output for 5.6.0
Func took 4.3849945068359 microseconds<br />
Output for 5.5.38
Func took 7.2739124298096 microseconds<br />
Output for 5.5.37
Func took 4.9121379852295 microseconds<br />
Output for 5.5.36
Func took 5.1569938659668 microseconds<br />
Output for 5.5.35
Func took 4.1821002960205 microseconds<br />
Output for 5.5.34
Func took 4.6930313110352 microseconds<br />
Output for 5.5.33
Func took 5.281925201416 microseconds<br />
Output for 5.5.32
Func took 4.033088684082 microseconds<br />
Output for 5.5.30
Func took 5.2869319915771 microseconds<br />
Output for 5.5.29
Func took 4.6310424804688 microseconds<br />
Output for 5.5.28
Func took 5.5239200592041 microseconds<br />
Output for 5.5.27
Func took 5.9199333190918 microseconds<br />
Output for 5.5.26
Func took 5.5100917816162 microseconds<br />
Output for 5.5.25
Func took 5.4140090942383 microseconds<br />
Output for 5.5.24
Func took 5.2950382232666 microseconds<br />
Output for 5.5.23
Func took 4.0030479431152 microseconds<br />
Output for 5.5.22
Func took 5.0909519195557 microseconds<br />
Output for 5.5.21
Func took 3.9200782775879 microseconds<br />
Output for 5.5.20
Func took 6.1509609222412 microseconds<br />
Output for 5.5.19
Func took 6.0429573059082 microseconds<br />
Output for 5.5.18
Func took 5.1867961883545 microseconds<br />
Output for 5.5.16
Func took 3.7360191345215 microseconds<br />
Output for 5.5.15
Func took 3.7529468536377 microseconds<br />
Output for 5.5.14
Func took 4.3570995330811 microseconds<br />
Output for 5.5.13
Func took 4.6229362487793 microseconds<br />
Output for 5.5.12
Func took 5.4481029510498 microseconds<br />
Output for 5.5.11
Func took 6.3700675964355 microseconds<br />
Output for 5.5.10
Func took 4.1990280151367 microseconds<br />
Output for 5.5.9
Func took 3.4859180450439 microseconds<br />
Output for 5.5.8
Func took 3.5951137542725 microseconds<br />
Output for 5.5.7
Func took 3.7760734558105 microseconds<br />
Output for 5.5.6
Func took 4.1849613189697 microseconds<br />
Output for 5.5.5
Func took 4.4100284576416 microseconds<br />
Output for 5.5.4
Func took 4.3768882751465 microseconds<br />
Output for 5.5.3
Func took 4.7929286956787 microseconds<br />
Output for 5.5.2
Func took 4.0130615234375 microseconds<br />
Output for 5.5.1
Func took 3.5538673400879 microseconds<br />
Output for 5.5.0
Func took 3.4658908843994 microseconds<br />
Output for 5.4.45
Func took 6.525993347168 microseconds<br />
Output for 5.4.44
Func took 5.1360130310059 microseconds<br />
Output for 5.4.43
Func took 6.2880516052246 microseconds<br />
Output for 5.4.42
Func took 5.2440166473389 microseconds<br />
Output for 5.4.41
Func took 5.9399604797363 microseconds<br />
Output for 5.4.40
Func took 5.4471492767334 microseconds<br />
Output for 5.4.39
Func took 5.6908130645752 microseconds<br />
Output for 5.4.38
Func took 6.6349506378174 microseconds<br />
Output for 5.4.37
Func took 6.6719055175781 microseconds<br />
Output for 5.4.36
Func took 6.1039924621582 microseconds<br />
Output for 5.4.35
Func took 6.1960220336914 microseconds<br />
Output for 5.4.34
Func took 5.8908462524414 microseconds<br />
Output for 5.4.32
Func took 4.234790802002 microseconds<br />
Output for 5.4.31
Func took 3.4768581390381 microseconds<br />
Output for 5.4.30
Func took 7.8389644622803 microseconds<br />
Output for 5.4.29
Func took 3.410816192627 microseconds<br />
Output for 5.4.28
Func took 5.5849552154541 microseconds<br />
Output for 5.4.27
Func took 4.4679641723633 microseconds<br />
Output for 5.4.26
Func took 4.7578811645508 microseconds<br />
Output for 5.4.25
Func took 4.5340061187744 microseconds<br />
Output for 5.4.24
Func took 5.728006362915 microseconds<br />
Output for 5.4.23
Func took 4.7810077667236 microseconds<br />
Output for 5.4.22
Func took 3.5140514373779 microseconds<br />
Output for 5.4.21
Func took 4.3151378631592 microseconds<br />
Output for 5.4.20
Func took 3.7450790405273 microseconds<br />
Output for 5.4.19
Func took 4.1120052337646 microseconds<br />
Output for 5.4.18
Func took 5.3360462188721 microseconds<br />
Output for 5.4.17
Func took 4.4569969177246 microseconds<br />
Output for 5.4.16
Func took 4.1980743408203 microseconds<br />
Output for 5.4.15
Func took 5.1329135894775 microseconds<br />
Output for 5.4.14
Func took 3.986120223999 microseconds<br />
Output for 5.4.13
Func took 3.5388469696045 microseconds<br />
Output for 5.4.12
Func took 5.0690174102783 microseconds<br />
Output for 5.4.11
Func took 3.856897354126 microseconds<br />
Output for 5.4.10
Func took 3.8230419158936 microseconds<br />
Output for 5.4.9
Func took 5.2669048309326 microseconds<br />
Output for 5.4.8
Func took 4.127025604248 microseconds<br />
Output for 5.4.7
Func took 5.6290626525879 microseconds<br />
Output for 5.4.6
Func took 6.2499046325684 microseconds<br />
Output for 5.4.5
Func took 6.6649913787842 microseconds<br />
Output for 5.4.4
Func took 6.4630508422852 microseconds<br />
Output for 5.4.3
Func took 5.8808326721191 microseconds<br />
Output for 5.4.2
Func took 5.9340000152588 microseconds<br />
Output for 5.4.1
Func took 5.1350593566895 microseconds<br />
Output for 5.4.0
Func took 4.5540332794189 microseconds<br />
Output for 5.3.29
Func took 4.8589706420898 microseconds<br />
Output for 5.3.28
Func took 4.2798519134521 microseconds<br />
Output for 5.3.27
Func took 4.3709278106689 microseconds<br />
Output for 5.3.26
Func took 3.9830207824707 microseconds<br />
Output for 5.3.25
Func took 3.4389495849609 microseconds<br />
Output for 5.3.24
Func took 4.2040348052979 microseconds<br />
Output for 5.3.23
Func took 4.1799545288086 microseconds<br />
Output for 5.3.22
Func took 6.8600177764893 microseconds<br />
Output for 5.3.21
Func took 4.2159557342529 microseconds<br />
Output for 5.3.20
Func took 4.1658878326416 microseconds<br />
Output for 5.3.19
Func took 3.13401222229 microseconds<br />
Output for 5.3.18
Func took 5.5069923400879 microseconds<br />
Output for 5.3.17
Func took 5.4020881652832 microseconds<br />
Output for 5.3.2, 5.3.16
Func took 5.5220127105713 microseconds<br />
Output for 5.3.15
Func took 8.8961124420166 microseconds<br />
Output for 5.3.14
Func took 3.6740303039551 microseconds<br />
Output for 5.3.13
Func took 4.7180652618408 microseconds<br />
Output for 5.3.12
Func took 4.7798156738281 microseconds<br />
Output for 5.3.11
Func took 4.019021987915 microseconds<br />
Output for 5.3.10
Func took 4.8439502716064 microseconds<br />
Output for 5.3.9
Func took 8.5480213165283 microseconds<br />
Output for 5.3.8
Func took 5.457878112793 microseconds<br />
Output for 5.3.7
Func took 5.7401657104492 microseconds<br />
Output for 5.3.6
Func took 6.0880184173584 microseconds<br />
Output for 5.3.5
Func took 5.9099197387695 microseconds<br />
Output for 5.3.4
Func took 6.6370964050293 microseconds<br />
Output for 5.3.3
Func took 5.9878826141357 microseconds<br />
Output for 5.3.1
Func took 5.763053894043 microseconds<br />
Output for 5.3.0
Func took 5.6488513946533 microseconds<br />
Output for 5.2.17
Func took 5.3901672363281 microseconds<br />
Output for 5.2.16
Func took 5.8958530426025 microseconds<br />
Output for 5.2.15
Func took 4.2309761047363 microseconds<br />
Output for 5.2.14
Func took 7.1408748626709 microseconds<br />
Output for 5.2.13
Func took 6.1559677124023 microseconds<br />
Output for 5.2.12
Func took 5.0950050354004 microseconds<br />
Output for 5.2.11
Func took 5.8650970458984 microseconds<br />
Output for 5.2.9
Func took 6.1600208282471 microseconds<br />
Output for 5.2.8
Func took 6.89697265625 microseconds<br />
Output for 5.2.7
Func took 6.3748359680176 microseconds<br />
Output for 5.2.6
Func took 6.721019744873 microseconds<br />
Output for 5.2.5
Func took 7.9150199890137 microseconds<br />
Output for 5.2.4
Func took 6.371021270752 microseconds<br />
Output for 5.2.3
Func took 8.7001323699951 microseconds<br />
Output for 5.2.2
Func took 7.2131156921387 microseconds<br />
Output for 5.2.1
Func took 5.1999092102051 microseconds<br />
Output for 5.2.0
Func took 4.4519901275635 microseconds<br />
Output for 5.1.6
Func took 8.1980228424072 microseconds<br />
Output for 5.1.5
Func took 7.188081741333 microseconds<br />
Output for 5.1.4
Func took 8.4018707275391 microseconds<br />
Output for 5.1.3
Func took 7.2329044342041 microseconds<br />
Output for 5.1.2
Func took 8.188009262085 microseconds<br />
Output for 5.1.1
Func took 4.9078464508057 microseconds<br />
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/rEnKK 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/rEnKK 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/rEnKK 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/rEnKK on line 14
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/rEnKK on line 14
Process exited with code 255.