Obtain filename extension with pathinfo
<?php
$this->start($loop);
$file = '/tmp/'.uniqid().'.jpg';
for ($i = 0; $i < $this->loop; ++$i) {
$value = strtolower(pathinfo($file, PATHINFO_EXTENSION));
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.041581 | +116% |
8.3.10 | 100.000 | 0.035921 | 100% |
8.3.9 | 100.000 | 0.036293 | +101% |
7.3.33 | 100.000 | 0.090042 | +251% |
7.3.31 | 100.000 | 0.082633 | +230% |
7.3.30 | 100.000 | 0.082384 | +229% |
7.3.29 | 100.000 | 0.082523 | +230% |
7.3.28 | 100.000 | 0.083270 | +232% |
7.3.27 | 100.000 | 0.107681 | +300% |
7.3.24 | 100.000 | 0.091794 | +256% |
7.3.23 | 100.000 | 0.093163 | +259% |
7.3.22 | 100.000 | 0.093666 | +261% |
7.3.19 | 100.000 | 0.093282 | +260% |
7.3.18 | 100.000 | 0.087247 | +243% |
7.3.17 | 100.000 | 0.084482 | +235% |
7.3.16 | 100.000 | 0.088535 | +246% |
7.3.15 | 100.000 | 0.086117 | +240% |
7.3.14 | 100.000 | 0.090421 | +252% |
7.3.13 | 100.000 | 0.086098 | +240% |
7.3.12 | 100.000 | 0.082651 | +230% |
7.3.11 | 100.000 | 0.100232 | +279% |
7.3.9 | 100.000 | 0.114903 | +320% |
7.3.8 | 100.000 | 0.114667 | +319% |
7.2.29 | 100.000 | 0.088567 | +247% |
8.3.13 | 10.000 | 0.005327 | +110% |
7.2.34 | 100.000 | 0.093883 | +261% |
7.2.33 | 100.000 | 0.092284 | +257% |
7.2.31 | 100.000 | 0.092877 | +259% |
7.2.30 | 100.000 | 0.089291 | +249% |
8.3.10 | 10.000 | 0.004832 | 100% |
7.2.28 | 100.000 | 0.092411 | +257% |
7.2.27 | 100.000 | 0.098527 | +274% |
7.2.26 | 100.000 | 0.093709 | +261% |
7.2.25 | 100.000 | 0.084163 | +234% |
7.2.24 | 100.000 | 0.098803 | +275% |
7.2.22 | 100.000 | 0.121459 | +338% |
7.2.21 | 100.000 | 0.119639 | +333% |
7.1.33 | 100.000 | 0.099360 | +277% |
7.1.32 | 100.000 | 0.126720 | +353% |
7.1.31 | 100.000 | 0.126572 | +352% |
7.1.0 | 100.000 | 0.346409 | +964% |
7.0.33 | 100.000 | 0.100877 | +281% |
7.0.7 | 100.000 | 0.334298 | +931% |
5.6.40 | 100.000 | 0.129022 | +359% |
5.6.22 | 100.000 | 0.489942 | +1364% |
5.5.36 | 100.000 | 0.567422 | +1580% |
5.4.45 | 100.000 | 0.551170 | +1534% |
5.3.29 | 100.000 | 0.731934 | +2038% |
8.3.9 | 10.000 | 0.005543 | +115% |
8.0.30 | 100.000 | 0.099116 | +276% |
8.0.29 | 100.000 | 0.077406 | +215% |
8.0.28 | 100.000 | 0.075548 | +210% |
8.0.27 | 100.000 | 0.079777 | +222% |
8.0.26 | 100.000 | 0.080418 | +224% |
8.0.25 | 100.000 | 0.075568 | +210% |
8.0.24 | 100.000 | 0.075196 | +209% |
8.0.23 | 100.000 | 0.078425 | +218% |
8.0.20 | 10.000 | 0.009360 | +194% |
8.0.20 | 100.000 | 0.077225 | +215% |
8.0.19 | 10.000 | 0.013012 | +269% |
8.0.19 | 100.000 | 0.081811 | +228% |
8.0.17 | 10.000 | 0.012843 | +266% |
8.0.17 | 100.000 | 0.088623 | +247% |
8.0.16 | 10.000 | 0.013252 | +274% |
8.0.16 | 100.000 | 0.084675 | +236% |
8.0.14 | 10.000 | 0.013852 | +287% |
8.0.14 | 100.000 | 0.090697 | +252% |
8.0.11 | 100.000 | 0.081230 | +226% |
8.0.10 | 100.000 | 0.080948 | +225% |
8.0.9 | 100.000 | 0.093544 | +260% |
8.0.8 | 100.000 | 0.118480 | +330% |
8.0.7 | 100.000 | 0.082498 | +230% |
8.0.3 | 100.000 | 0.102090 | +284% |
8.0.2 | 100.000 | 0.119326 | +332% |
8.0.0 | 100.000 | 0.087185 | +243% |
7.4.33 | 100.000 | 0.092331 | +257% |
7.4.32 | 100.000 | 0.079514 | +221% |
7.4.30 | 100.000 | 0.082130 | +229% |
7.4.28 | 100.000 | 0.090805 | +253% |
7.4.27 | 100.000 | 0.088597 | +247% |
7.4.24 | 100.000 | 0.086486 | +241% |
7.4.23 | 100.000 | 0.090776 | +253% |
7.4.22 | 100.000 | 0.082814 | +231% |
8.0.11 | 10.000 | 0.013409 | +277% |
8.0.10 | 10.000 | 0.013517 | +280% |
8.0.0 | 10.000 | 0.013554 | +280% |
7.4.29 | 100.000 | 0.086526 | +241% |
7.4.21 | 10.000 | 0.015094 | +312% |
7.4.21 | 100.000 | 0.091535 | +255% |
7.4.20 | 10.000 | 0.014409 | +298% |
7.4.20 | 100.000 | 0.087141 | +243% |
7.4.16 | 100.000 | 0.106543 | +297% |
7.4.15 | 100.000 | 0.132653 | +369% |
7.4.33 | 10.000 | 0.012210 | +253% |
7.4.32 | 10.000 | 0.010505 | +217% |
7.4.30 | 10.000 | 0.011088 | +229% |
7.4.29 | 10.000 | 0.015470 | +320% |
7.4.24 | 10.000 | 0.012984 | +269% |
7.4.23 | 10.000 | 0.013752 | +285% |
7.4.22 | 10.000 | 0.014031 | +290% |
7.4.13 | 100.000 | 0.086432 | +241% |
7.4.12 | 100.000 | 0.103048 | +287% |
7.4.11 | 100.000 | 0.099959 | +278% |
7.4.10 | 100.000 | 0.083920 | +234% |
8.0.2 | 10.000 | 0.017731 | +367% |
7.4.0 | 100.000 | 0.108346 | +302% |
8.0.30 | 10.000 | 0.014003 | +290% |
8.0.29 | 10.000 | 0.008661 | +179% |
8.0.28 | 10.000 | 0.010022 | +207% |
8.0.27 | 10.000 | 0.011448 | +237% |
8.0.26 | 10.000 | 0.012939 | +268% |
8.0.25 | 10.000 | 0.011053 | +229% |
8.0.24 | 10.000 | 0.009584 | +198% |
8.0.23 | 10.000 | 0.009214 | +191% |
8.0.9 | 10.000 | 0.013118 | +271% |
8.0.8 | 10.000 | 0.012429 | +257% |
8.0.7 | 10.000 | 0.015659 | +324% |
8.0.3 | 10.000 | 0.016233 | +336% |
7.4.28 | 10.000 | 0.013679 | +283% |
7.4.27 | 10.000 | 0.014168 | +293% |
7.4.16 | 10.000 | 0.017113 | +354% |
7.4.15 | 10.000 | 0.025756 | +533% |
7.4.13 | 10.000 | 0.013216 | +273% |
7.4.12 | 10.000 | 0.012510 | +259% |
7.4.11 | 10.000 | 0.012596 | +261% |
7.4.10 | 10.000 | 0.013487 | +279% |
7.4.7 | 10.000 | 0.013797 | +286% |
7.4.7 | 100.000 | 0.089956 | +250% |
7.4.6 | 10.000 | 0.015319 | +317% |
7.4.6 | 100.000 | 0.087939 | +245% |
7.4.5 | 10.000 | 0.014329 | +297% |
7.4.5 | 100.000 | 0.086903 | +242% |
7.4.4 | 10.000 | 0.013570 | +281% |
7.4.4 | 100.000 | 0.086584 | +241% |
7.4.3 | 10.000 | 0.013641 | +282% |
7.4.3 | 100.000 | 0.082354 | +229% |
7.4.1 | 100.000 | 0.088799 | +247% |
7.4.2 | 10.000 | 0.015773 | +326% |
7.4.2 | 100.000 | 0.088796 | +247% |
7.4.1 | 10.000 | 0.016418 | +340% |
7.4.0 | 10.000 | 0.013026 | +270% |
7.3.33 | 10.000 | 0.012440 | +257% |
7.3.31 | 10.000 | 0.013667 | +283% |
7.3.30 | 10.000 | 0.014437 | +299% |
7.3.29 | 10.000 | 0.011854 | +245% |
7.3.28 | 10.000 | 0.014898 | +308% |
7.3.27 | 10.000 | 0.017300 | +358% |
7.3.24 | 10.000 | 0.012879 | +267% |
7.3.23 | 10.000 | 0.015241 | +315% |
7.3.22 | 10.000 | 0.014935 | +309% |
7.3.19 | 10.000 | 0.014774 | +306% |
7.3.18 | 10.000 | 0.013314 | +276% |
7.3.17 | 10.000 | 0.013502 | +279% |
7.3.16 | 10.000 | 0.013016 | +269% |
7.3.15 | 10.000 | 0.013189 | +273% |
7.3.14 | 10.000 | 0.016585 | +343% |
7.3.13 | 10.000 | 0.016235 | +336% |
7.3.12 | 10.000 | 0.014139 | +293% |
7.3.11 | 10.000 | 0.011324 | +234% |
7.3.9 | 10.000 | 0.013283 | +275% |
7.3.8 | 10.000 | 0.012342 | +255% |
7.2.34 | 10.000 | 0.013120 | +272% |
7.2.33 | 10.000 | 0.012859 | +266% |
7.2.31 | 10.000 | 0.014920 | +309% |
7.2.30 | 10.000 | 0.014543 | +301% |
7.2.29 | 10.000 | 0.013883 | +287% |
7.2.28 | 10.000 | 0.013888 | +287% |
7.2.27 | 10.000 | 0.017342 | +359% |
7.2.26 | 10.000 | 0.017253 | +357% |
7.2.25 | 10.000 | 0.014745 | +305% |
7.2.24 | 10.000 | 0.011917 | +247% |
7.2.22 | 10.000 | 0.014172 | +293% |
7.2.21 | 10.000 | 0.012781 | +265% |
7.1.33 | 10.000 | 0.014464 | +299% |
7.1.32 | 10.000 | 0.014109 | +292% |
7.1.31 | 10.000 | 0.013476 | +279% |
7.1.0 | 10.000 | 0.036450 | +754% |
7.0.33 | 10.000 | 0.014360 | +297% |
7.0.7 | 10.000 | 0.035616 | +737% |
5.6.40 | 10.000 | 0.017295 | +358% |
5.6.22 | 10.000 | 0.051457 | +1065% |
5.5.36 | 10.000 | 0.057179 | +1183% |
5.4.45 | 10.000 | 0.056120 | +1161% |
5.3.29 | 10.000 | 0.079160 | +1638% |