3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time_start = microtime(true); $myArray = array(); for ( $i = 0; $i < 100000; ++$i ){ $myArray[] = $i; $myArray[] = 'test a string';} $time_end = microtime(true); printf("Took %f seconds for array[]\n", $time_end - $time_start); $time_start = microtime(true); $myArray = array(); for ( $i = 0; $i < 100000; ++$i ){ array_push($myArray, $i); array_push($myArray, 'test a string');} $time_end = microtime(true); printf("Took %f seconds for array_push\n", $time_end - $time_start);
Output for 7.1.0
Took 0.006055 seconds for array[] Took 0.022702 seconds for array_push
Output for 7.0.14
Took 0.006409 seconds for array[] Took 0.021964 seconds for array_push
Output for 7.0.7
Took 0.005872 seconds for array[] Took 0.018956 seconds for array_push
Output for 7.0.6
Took 0.005931 seconds for array[] Took 0.018659 seconds for array_push
Output for 7.0.5
Took 0.003928 seconds for array[] Took 0.013216 seconds for array_push
Output for 7.0.4
Took 0.004869 seconds for array[] Took 0.014958 seconds for array_push
Output for 7.0.3
Took 0.005915 seconds for array[] Took 0.020034 seconds for array_push
Output for 7.0.2
Took 0.006378 seconds for array[] Took 0.017963 seconds for array_push
Output for 7.0.1
Took 0.006159 seconds for array[] Took 0.015464 seconds for array_push
Output for 7.0.0
Took 0.004386 seconds for array[] Took 0.013130 seconds for array_push
Output for hhvm-3.12.0
Took 0.012878 seconds for array[] Took 0.025788 seconds for array_push
Output for hhvm-3.10.0
Took 0.014551 seconds for array[] Took 0.026693 seconds for array_push
Output for 5.6.28
Took 0.038469 seconds for array[] Took 0.062355 seconds for array_push
Output for 5.6.22
Took 0.039678 seconds for array[] Took 0.062189 seconds for array_push
Output for 5.6.21
Took 0.025049 seconds for array[] Took 0.046976 seconds for array_push
Output for 5.6.20
Took 0.026220 seconds for array[] Took 0.047673 seconds for array_push
Output for 5.6.19
Took 0.032184 seconds for array[] Took 0.056535 seconds for array_push
Output for 5.6.18
Took 0.037566 seconds for array[] Took 0.053972 seconds for array_push
Output for 5.6.17
Took 0.024876 seconds for array[] Took 0.042316 seconds for array_push
Output for 5.6.16
Took 0.039611 seconds for array[] Took 0.063425 seconds for array_push
Output for 5.6.15
Took 0.034167 seconds for array[] Took 0.047665 seconds for array_push
Output for 5.6.14
Took 0.035732 seconds for array[] Took 0.057890 seconds for array_push
Output for 5.6.13
Took 0.038954 seconds for array[] Took 0.062366 seconds for array_push
Output for 5.6.12
Took 0.037454 seconds for array[] Took 0.060865 seconds for array_push
Output for 5.6.11
Took 0.037251 seconds for array[] Took 0.053275 seconds for array_push
Output for 5.6.10
Took 0.036517 seconds for array[] Took 0.052059 seconds for array_push
Output for 5.6.9
Took 0.033106 seconds for array[] Took 0.056501 seconds for array_push
Output for 5.6.8
Took 0.031789 seconds for array[] Took 0.055238 seconds for array_push
Output for 5.6.7
Took 0.039368 seconds for array[] Took 0.062730 seconds for array_push
Output for 5.6.6
Took 0.038093 seconds for array[] Took 0.060359 seconds for array_push
Output for 5.6.5
Took 0.038685 seconds for array[] Took 0.054670 seconds for array_push
Output for 5.6.4
Took 0.032886 seconds for array[] Took 0.052220 seconds for array_push
Output for 5.6.3
Took 0.030122 seconds for array[] Took 0.049108 seconds for array_push
Output for 5.6.2
Took 0.029251 seconds for array[] Took 0.050104 seconds for array_push
Output for 5.6.1
Took 0.034483 seconds for array[] Took 0.055028 seconds for array_push
Output for 5.6.0
Took 0.033856 seconds for array[] Took 0.055805 seconds for array_push
Output for 5.5.36
Took 0.028861 seconds for array[] Took 0.050147 seconds for array_push
Output for 5.5.35
Took 0.037664 seconds for array[] Took 0.060827 seconds for array_push
Output for 5.5.34
Took 0.028105 seconds for array[] Took 0.047091 seconds for array_push
Output for 5.5.33
Took 0.033565 seconds for array[] Took 0.057521 seconds for array_push
Output for 5.5.32
Took 0.034763 seconds for array[] Took 0.055222 seconds for array_push
Output for 5.5.31
Took 0.039495 seconds for array[] Took 0.061782 seconds for array_push
Output for 5.5.30
Took 0.036276 seconds for array[] Took 0.056093 seconds for array_push
Output for 5.5.29
Took 0.031662 seconds for array[] Took 0.051698 seconds for array_push
Output for 5.5.28
Took 0.035834 seconds for array[] Took 0.055466 seconds for array_push
Output for 5.5.27
Took 0.038908 seconds for array[] Took 0.062249 seconds for array_push
Output for 5.5.26
Took 0.038110 seconds for array[] Took 0.054273 seconds for array_push
Output for 5.5.25
Took 0.035746 seconds for array[] Took 0.053506 seconds for array_push
Output for 5.5.24
Took 0.037988 seconds for array[] Took 0.063949 seconds for array_push
Output for 5.5.23
Took 0.032792 seconds for array[] Took 0.052297 seconds for array_push
Output for 5.5.22
Took 0.027399 seconds for array[] Took 0.048056 seconds for array_push
Output for 5.5.21
Took 0.033565 seconds for array[] Took 0.049571 seconds for array_push
Output for 5.5.20
Took 0.036972 seconds for array[] Took 0.051733 seconds for array_push
Output for 5.5.19
Took 0.036862 seconds for array[] Took 0.057690 seconds for array_push
Output for 5.5.18
Took 0.029525 seconds for array[] Took 0.050053 seconds for array_push
Output for 5.5.16
Took 0.038751 seconds for array[] Took 0.060505 seconds for array_push
Output for 5.5.15
Took 0.027336 seconds for array[] Took 0.048299 seconds for array_push
Output for 5.5.14
Took 0.035841 seconds for array[] Took 0.056215 seconds for array_push
Output for 5.5.13
Took 0.039332 seconds for array[] Took 0.062529 seconds for array_push
Output for 5.5.12
Took 0.042750 seconds for array[] Took 0.064519 seconds for array_push
Output for 5.5.11
Took 0.035623 seconds for array[] Took 0.053023 seconds for array_push
Output for 5.5.10
Took 0.037083 seconds for array[] Took 0.053836 seconds for array_push
Output for 5.5.9
Took 0.035100 seconds for array[] Took 0.058795 seconds for array_push
Output for 5.5.8
Took 0.033314 seconds for array[] Took 0.051057 seconds for array_push
Output for 5.5.7
Took 0.035926 seconds for array[] Took 0.060314 seconds for array_push
Output for 5.5.6
Took 0.025935 seconds for array[] Took 0.049813 seconds for array_push
Output for 5.5.5
Took 0.035239 seconds for array[] Took 0.060123 seconds for array_push
Output for 5.5.4
Took 0.036970 seconds for array[] Took 0.059130 seconds for array_push
Output for 5.5.3
Took 0.047845 seconds for array[] Took 0.061643 seconds for array_push
Output for 5.5.2
Took 0.034215 seconds for array[] Took 0.055152 seconds for array_push
Output for 5.5.1
Took 0.034742 seconds for array[] Took 0.056378 seconds for array_push
Output for 5.5.0
Took 0.026367 seconds for array[] Took 0.050739 seconds for array_push
Output for 5.4.45
Took 0.031123 seconds for array[] Took 0.049080 seconds for array_push
Output for 5.4.44
Took 0.037361 seconds for array[] Took 0.061223 seconds for array_push
Output for 5.4.43
Took 0.037732 seconds for array[] Took 0.054029 seconds for array_push
Output for 5.4.42
Took 0.037880 seconds for array[] Took 0.061945 seconds for array_push
Output for 5.4.41
Took 0.038317 seconds for array[] Took 0.063745 seconds for array_push
Output for 5.4.40
Took 0.036118 seconds for array[] Took 0.061166 seconds for array_push
Output for 5.4.39
Took 0.039440 seconds for array[] Took 0.062304 seconds for array_push
Output for 5.4.38
Took 0.037508 seconds for array[] Took 0.052389 seconds for array_push
Output for 5.4.37
Took 0.037918 seconds for array[] Took 0.062296 seconds for array_push
Output for 5.4.36
Took 0.039677 seconds for array[] Took 0.064638 seconds for array_push
Output for 5.4.35
Took 0.035260 seconds for array[] Took 0.058771 seconds for array_push
Output for 5.4.34
Took 0.035302 seconds for array[] Took 0.053746 seconds for array_push
Output for 5.4.32
Took 0.039228 seconds for array[] Took 0.065600 seconds for array_push
Output for 5.4.31
Took 0.038915 seconds for array[] Took 0.063311 seconds for array_push
Output for 5.4.30
Took 0.029582 seconds for array[] Took 0.048924 seconds for array_push
Output for 5.4.29
Took 0.033602 seconds for array[] Took 0.049374 seconds for array_push
Output for 5.4.28
Took 0.025150 seconds for array[] Took 0.048423 seconds for array_push
Output for 5.4.27
Took 0.038115 seconds for array[] Took 0.061050 seconds for array_push
Output for 5.4.26
Took 0.025153 seconds for array[] Took 0.047977 seconds for array_push
Output for 5.4.25
Took 0.033340 seconds for array[] Took 0.051914 seconds for array_push
Output for 5.4.24
Took 0.026083 seconds for array[] Took 0.048914 seconds for array_push
Output for 5.4.23
Took 0.024971 seconds for array[] Took 0.048659 seconds for array_push
Output for 5.4.22
Took 0.037405 seconds for array[] Took 0.055197 seconds for array_push
Output for 5.4.21
Took 0.035556 seconds for array[] Took 0.051193 seconds for array_push
Output for 5.4.20
Took 0.037450 seconds for array[] Took 0.053537 seconds for array_push
Output for 5.4.19
Took 0.035957 seconds for array[] Took 0.062106 seconds for array_push
Output for 5.4.18
Took 0.041107 seconds for array[] Took 0.064697 seconds for array_push
Output for 5.4.17
Took 0.033173 seconds for array[] Took 0.051037 seconds for array_push
Output for 5.4.16
Took 0.026438 seconds for array[] Took 0.049314 seconds for array_push
Output for 5.4.15
Took 0.025804 seconds for array[] Took 0.048683 seconds for array_push
Output for 5.4.14
Took 0.026048 seconds for array[] Took 0.049301 seconds for array_push
Output for 5.4.13
Took 0.037996 seconds for array[] Took 0.050937 seconds for array_push
Output for 5.4.12
Took 0.028249 seconds for array[] Took 0.050973 seconds for array_push
Output for 5.4.11
Took 0.025268 seconds for array[] Took 0.050063 seconds for array_push
Output for 5.4.10
Took 0.025743 seconds for array[] Took 0.049493 seconds for array_push
Output for 5.4.9
Took 0.026940 seconds for array[] Took 0.049301 seconds for array_push
Output for 5.4.8
Took 0.027539 seconds for array[] Took 0.052165 seconds for array_push
Output for 5.4.7
Took 0.026463 seconds for array[] Took 0.050382 seconds for array_push
Output for 5.4.6
Took 0.038426 seconds for array[] Took 0.064913 seconds for array_push
Output for 5.4.5
Took 0.021920 seconds for array[] Took 0.042920 seconds for array_push
Output for 5.4.4
Took 0.024672 seconds for array[] Took 0.048139 seconds for array_push
Output for 5.4.3
Took 0.024599 seconds for array[] Took 0.048858 seconds for array_push
Output for 5.4.2
Took 0.035088 seconds for array[] Took 0.054071 seconds for array_push
Output for 5.4.1
Took 0.036550 seconds for array[] Took 0.061363 seconds for array_push
Output for 5.4.0
Took 0.040126 seconds for array[] Took 0.064768 seconds for array_push
Output for 5.3.29
Took 0.047340 seconds for array[] Took 0.061676 seconds for array_push
Output for 5.3.28
Took 0.031401 seconds for array[] Took 0.048925 seconds for array_push
Output for 5.3.27
Took 0.033499 seconds for array[] Took 0.049627 seconds for array_push
Output for 5.3.26
Took 0.031953 seconds for array[] Took 0.048279 seconds for array_push
Output for 5.3.25
Took 0.034358 seconds for array[] Took 0.048231 seconds for array_push
Output for 5.3.24
Took 0.042090 seconds for array[] Took 0.053206 seconds for array_push
Output for 5.3.23
Took 0.040512 seconds for array[] Took 0.054338 seconds for array_push
Output for 5.3.22
Took 0.038479 seconds for array[] Took 0.053936 seconds for array_push
Output for 5.3.21
Took 0.048596 seconds for array[] Took 0.057360 seconds for array_push
Output for 5.3.20
Took 0.039010 seconds for array[] Took 0.054788 seconds for array_push
Output for 5.3.19
Took 0.031376 seconds for array[] Took 0.048311 seconds for array_push
Output for 5.3.18
Took 0.031999 seconds for array[] Took 0.048675 seconds for array_push
Output for 5.3.17
Took 0.042582 seconds for array[] Took 0.050571 seconds for array_push
Output for 5.3.16
Took 0.034196 seconds for array[] Took 0.052185 seconds for array_push
Output for 5.3.15
Took 0.031134 seconds for array[] Took 0.049090 seconds for array_push
Output for 5.3.14
Took 0.030284 seconds for array[] Took 0.047347 seconds for array_push
Output for 5.3.13
Took 0.029908 seconds for array[] Took 0.046887 seconds for array_push
Output for 5.3.12
Took 0.044998 seconds for array[] Took 0.059946 seconds for array_push
Output for 5.3.11
Took 0.041742 seconds for array[] Took 0.052428 seconds for array_push
Output for 5.3.10
Took 0.042413 seconds for array[] Took 0.055833 seconds for array_push
Output for 5.3.9
Took 0.032400 seconds for array[] Took 0.048518 seconds for array_push
Output for 5.3.8
Took 0.050120 seconds for array[] Took 0.061656 seconds for array_push
Output for 5.3.7
Took 0.042759 seconds for array[] Took 0.055224 seconds for array_push
Output for 5.3.6
Took 0.041552 seconds for array[] Took 0.057709 seconds for array_push
Output for 5.3.5
Took 0.050319 seconds for array[] Took 0.062713 seconds for array_push
Output for 5.3.4
Took 0.035475 seconds for array[] Took 0.048869 seconds for array_push
Output for 5.3.3
Took 0.040749 seconds for array[] Took 0.054697 seconds for array_push
Output for 5.3.2
Took 0.047756 seconds for array[] Took 0.059985 seconds for array_push
Output for 5.3.1
Took 0.040822 seconds for array[] Took 0.056940 seconds for array_push
Output for 5.3.0
Took 0.040258 seconds for array[] Took 0.050863 seconds for array_push
Output for 5.2.17
Took 0.037816 seconds for array[] Took 0.046795 seconds for array_push
Output for 5.2.16
Took 0.046740 seconds for array[] Took 0.051053 seconds for array_push
Output for 5.2.15
Took 0.052673 seconds for array[] Took 0.055746 seconds for array_push
Output for 5.2.14
Took 0.042538 seconds for array[] Took 0.051565 seconds for array_push
Output for 5.2.13
Took 0.049075 seconds for array[] Took 0.053100 seconds for array_push
Output for 5.2.12
Took 0.050231 seconds for array[] Took 0.049688 seconds for array_push
Output for 5.2.11
Took 0.049413 seconds for array[] Took 0.058569 seconds for array_push
Output for 5.2.10
Took 0.031683 seconds for array[] Took 0.047153 seconds for array_push
Output for 5.2.9
Took 0.053874 seconds for array[] Took 0.058306 seconds for array_push
Output for 5.2.8
Took 0.034472 seconds for array[] Took 0.045668 seconds for array_push
Output for 5.2.7
Took 0.048010 seconds for array[] Took 0.056479 seconds for array_push
Output for 5.2.6
Took 0.049253 seconds for array[] Took 0.052550 seconds for array_push
Output for 5.2.5
Took 0.042445 seconds for array[] Took 0.057960 seconds for array_push
Output for 5.2.4
Took 0.041781 seconds for array[] Took 0.057135 seconds for array_push
Output for 5.2.3
Took 0.065351 seconds for array[] Took 0.074726 seconds for array_push
Output for 5.2.2
Took 0.049079 seconds for array[] Took 0.060735 seconds for array_push
Output for 5.2.1
Took 0.034353 seconds for array[] Took 0.049424 seconds for array_push
Output for 5.2.0
Took 0.046062 seconds for array[] Took 0.052824 seconds for array_push
Output for 5.1.6
Took 0.085697 seconds for array[] Took 0.071992 seconds for array_push
Output for 5.1.5
Took 0.059177 seconds for array[] Took 0.069715 seconds for array_push
Output for 5.1.4
Took 0.043039 seconds for array[] Took 0.061420 seconds for array_push
Output for 5.1.3
Took 0.047326 seconds for array[] Took 0.060445 seconds for array_push
Output for 5.1.2
Took 0.050058 seconds for array[] Took 0.065395 seconds for array_push
Output for 5.1.1
Took 0.044831 seconds for array[] Took 0.063944 seconds for array_push
Output for 5.1.0
Took 0.059345 seconds for array[] Took 0.065137 seconds for array_push
Output for 5.0.5
Took 0.070998 seconds for array[] Took 0.082678 seconds for array_push
Output for 5.0.4
Took 0.074115 seconds for array[] Took 0.090121 seconds for array_push
Output for 5.0.3
Took 0.077360 seconds for array[] Took 0.083151 seconds for array_push
Output for 5.0.2
Took 0.082209 seconds for array[] Took 0.089755 seconds for array_push
Output for 5.0.1
Took 0.058559 seconds for array[] Took 0.079007 seconds for array_push
Output for 5.0.0
Took 0.069407 seconds for array[] Took 0.085557 seconds for array_push
Output for 4.4.9
Took 0.090239 seconds for array[] Took 0.090374 seconds for array_push
Output for 4.4.8
Took 0.078056 seconds for array[] Took 0.085727 seconds for array_push
Output for 4.4.7
Took 0.086366 seconds for array[] Took 0.081962 seconds for array_push
Output for 4.4.6
Took 0.053205 seconds for array[] Took 0.079242 seconds for array_push
Output for 4.4.5
Took 0.056612 seconds for array[] Took 0.082230 seconds for array_push
Output for 4.4.4
Took 0.077820 seconds for array[] Took 0.089538 seconds for array_push
Output for 4.4.3
Took 0.095330 seconds for array[] Took 0.100746 seconds for array_push
Output for 4.4.2
Took 0.055058 seconds for array[] Took 0.085846 seconds for array_push
Output for 4.4.1
Took 0.060063 seconds for array[] Took 0.079416 seconds for array_push
Output for 4.4.0
Took 0.085040 seconds for array[] Took 0.093558 seconds for array_push
Output for 4.3.11
Took 0.062371 seconds for array[] Took 0.080127 seconds for array_push
Output for 4.3.10
Took 0.083971 seconds for array[] Took 0.093281 seconds for array_push
Output for 4.3.9
Took 0.089852 seconds for array[] Took 0.143059 seconds for array_push
Output for 4.3.8
Took 0.072481 seconds for array[] Took 0.081166 seconds for array_push
Output for 4.3.7
Took 0.091178 seconds for array[] Took 0.092986 seconds for array_push
Output for 4.3.6
Took 0.094212 seconds for array[] Took 0.096616 seconds for array_push
Output for 4.3.5
Took 0.074459 seconds for array[] Took 0.081670 seconds for array_push
Output for 4.3.4
Took 0.053766 seconds for array[] Took 0.080960 seconds for array_push
Output for 4.3.3
Took 0.088032 seconds for array[] Took 0.092751 seconds for array_push
Output for 4.3.2
Took 0.084342 seconds for array[] Took 0.095266 seconds for array_push
Output for 4.3.1
Took 0.081812 seconds for array[] Took 0.089555 seconds for array_push
Output for 4.3.0
Took 0.080398 seconds for array[] Took 0.086937 seconds for array_push