Fill an array with array_merge
<?php
$this->start($loop);
$values = array();
for ($i = 0; $i < $this->loop; $i++) {
$values = array_merge($values, array($i));
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 10.000 | 0.166106 | +117% |
8.3.10 | 10.000 | 0.159364 | +112% |
8.3.9 | 10.000 | 0.178873 | +126% |
8.0.30 | 10.000 | 0.189066 | +133% |
8.0.29 | 10.000 | 0.144037 | +101% |
8.0.28 | 10.000 | 0.147823 | +104% |
8.0.27 | 10.000 | 0.167554 | +118% |
8.0.26 | 10.000 | 0.172488 | +121% |
8.0.25 | 10.000 | 0.142285 | 100% |
8.0.24 | 10.000 | 0.157890 | +111% |
8.0.23 | 10.000 | 0.157510 | +111% |
8.0.20 | 10.000 | 0.161303 | +113% |
8.0.19 | 10.000 | 0.143821 | +101% |
8.0.17 | 10.000 | 0.205262 | +144% |
8.0.16 | 10.000 | 0.259192 | +182% |
8.0.14 | 10.000 | 0.214154 | +151% |
8.0.11 | 10.000 | 0.205310 | +144% |
8.0.10 | 10.000 | 0.206191 | +145% |
8.0.9 | 10.000 | 0.211935 | +149% |
8.0.8 | 10.000 | 0.206068 | +145% |
8.0.7 | 10.000 | 0.206393 | +145% |
8.0.3 | 10.000 | 0.252430 | +177% |
8.0.2 | 10.000 | 0.300004 | +211% |
8.0.0 | 10.000 | 0.208453 | +147% |
7.4.33 | 10.000 | 0.174619 | +123% |
7.4.32 | 10.000 | 0.151432 | +106% |
7.4.30 | 10.000 | 0.143151 | +101% |
7.4.29 | 10.000 | 0.144272 | +101% |
7.4.28 | 10.000 | 0.211293 | +148% |
7.4.27 | 10.000 | 0.214236 | +151% |
7.4.24 | 10.000 | 0.207002 | +145% |
7.4.23 | 10.000 | 0.213296 | +150% |
7.4.22 | 10.000 | 0.207019 | +145% |
7.4.21 | 10.000 | 0.210877 | +148% |
7.4.20 | 10.000 | 0.207321 | +146% |
7.4.16 | 10.000 | 0.248698 | +175% |
7.4.15 | 10.000 | 0.293737 | +206% |
7.4.13 | 10.000 | 0.212253 | +149% |
7.4.12 | 10.000 | 0.223048 | +157% |
7.4.11 | 10.000 | 0.215004 | +151% |
7.4.10 | 10.000 | 0.209578 | +147% |
7.4.7 | 10.000 | 0.215395 | +151% |
7.4.6 | 10.000 | 0.203251 | +143% |
7.4.5 | 10.000 | 0.209886 | +148% |
7.4.4 | 10.000 | 0.202160 | +142% |
7.4.3 | 10.000 | 0.202775 | +143% |
7.4.2 | 10.000 | 0.207692 | +146% |
7.4.1 | 10.000 | 0.208342 | +146% |
7.4.0 | 10.000 | 0.367891 | +259% |
7.3.33 | 10.000 | 0.497365 | +350% |
7.3.31 | 10.000 | 0.487426 | +343% |
7.3.30 | 10.000 | 0.472855 | +332% |
7.3.29 | 10.000 | 0.476311 | +335% |
7.3.28 | 10.000 | 0.471004 | +331% |
7.3.27 | 10.000 | 0.597423 | +420% |
7.3.24 | 10.000 | 0.497777 | +350% |
7.3.23 | 10.000 | 0.526223 | +370% |
7.3.22 | 10.000 | 0.518742 | +365% |
7.3.19 | 10.000 | 0.507878 | +357% |
7.3.18 | 10.000 | 0.468162 | +329% |
7.3.17 | 10.000 | 0.480044 | +337% |
7.3.16 | 10.000 | 0.447141 | +314% |
7.3.15 | 10.000 | 0.471687 | +332% |
7.3.14 | 10.000 | 0.470521 | +331% |
7.3.13 | 10.000 | 0.455214 | +320% |
7.3.12 | 10.000 | 0.454411 | +319% |
7.3.11 | 10.000 | 0.643463 | +452% |
7.3.9 | 10.000 | 0.811571 | +570% |
7.3.8 | 10.000 | 0.729045 | +512% |
7.2.34 | 10.000 | 0.199017 | +140% |
7.2.33 | 10.000 | 0.210674 | +148% |
7.2.31 | 10.000 | 0.205309 | +144% |
7.2.30 | 10.000 | 0.205654 | +145% |
7.2.29 | 10.000 | 0.194117 | +136% |
7.2.28 | 10.000 | 0.205340 | +144% |
7.2.27 | 10.000 | 0.209803 | +147% |
7.2.26 | 10.000 | 0.209617 | +147% |
7.2.25 | 10.000 | 0.196093 | +138% |
7.2.24 | 10.000 | 0.323294 | +227% |
7.2.22 | 10.000 | 0.441583 | +310% |
7.2.21 | 10.000 | 0.401112 | +282% |
7.1.33 | 10.000 | 0.195353 | +137% |
7.1.32 | 10.000 | 0.433184 | +304% |
7.1.31 | 10.000 | 0.400507 | +281% |
7.1.0 | 10.000 | 1.402202 | +985% |
7.0.33 | 10.000 | 0.488334 | +343% |
7.0.7 | 10.000 | 3.047423 | +2142% |
5.6.40 | 10.000 | 4.006016 | +2815% |
5.6.22 | 10.000 | 28.846470 | +20274% |
5.5.36 | 10.000 | 29.836418 | +20970% |
5.4.45 | 10.000 | 57.776222 | +40606% |
5.3.29 | 10.000 | 57.691892 | +40547% |