PathinfoExtensionTest

Obtain filename extension with pathinfo


<?php 

$this
->start($loop);

$file '/tmp/'.uniqid().'.jpg';

for (
$i 0$i $this->loop; ++$i) {
    
$value strtolower(pathinfo($filePATHINFO_EXTENSION));
}

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 10.000 0.012880 +149%
8.0.30 100.000 0.090572 +120%
8.0.9 100.000 0.093544 +124%
8.0.8 100.000 0.118480 +158%
7.3.13 100.000 0.086098 +114%
7.3.12 100.000 0.082651 +110%
7.3.11 100.000 0.100232 +133%
7.2.34 100.000 0.090908 +121%
7.2.33 100.000 0.092284 +123%
7.2.31 100.000 0.092877 +124%
7.2.30 100.000 0.089291 +119%
7.2.29 100.000 0.088567 +118%
7.2.28 100.000 0.092411 +123%
7.2.27 100.000 0.098527 +131%
7.2.26 100.000 0.093709 +125%
7.2.25 100.000 0.084163 +112%
7.2.24 100.000 0.098803 +131%
7.2.22 100.000 0.121459 +162%
7.2.21 100.000 0.119639 +159%
7.1.33 100.000 0.096868 +129%
7.1.32 100.000 0.126720 +169%
7.1.31 100.000 0.126572 +168%
7.1.0 100.000 0.346409 +461%
7.0.33 100.000 0.098860 +131%
7.0.7 100.000 0.334298 +445%
5.6.40 100.000 0.126342 +168%
5.6.22 100.000 0.489942 +652%
5.5.36 100.000 0.567422 +755%
5.4.45 100.000 0.551170 +733%
5.3.29 100.000 0.731934 +973%
8.0.29 10.000 0.008661 100%
8.0.29 100.000 0.077406 +103%
8.0.28 100.000 0.075548 100%
8.0.27 100.000 0.079777 +106%
8.0.26 100.000 0.080418 +107%
8.0.25 100.000 0.075568 100%
8.0.24 100.000 0.075196 100%
8.0.23 100.000 0.078425 +104%
8.0.20 100.000 0.077225 +103%
8.0.19 100.000 0.081811 +109%
8.0.17 100.000 0.088623 +118%
8.0.16 100.000 0.084675 +113%
8.0.14 100.000 0.090697 +121%
8.0.11 10.000 0.013409 +155%
8.0.11 100.000 0.081230 +108%
8.0.10 10.000 0.013517 +156%
8.0.10 100.000 0.080948 +108%
7.3.15 100.000 0.086117 +115%
8.0.28 10.000 0.010022 +116%
8.0.27 10.000 0.011448 +132%
8.0.26 10.000 0.012939 +149%
8.0.25 10.000 0.011053 +128%
8.0.24 10.000 0.009584 +111%
8.0.23 10.000 0.009214 +106%
8.0.20 10.000 0.009360 +108%
8.0.19 10.000 0.013012 +150%
8.0.17 10.000 0.012843 +148%
8.0.16 10.000 0.013252 +153%
8.0.14 10.000 0.013852 +160%
7.3.14 100.000 0.090421 +120%
8.0.9 10.000 0.013118 +151%
8.0.7 100.000 0.082498 +110%
8.0.8 10.000 0.012429 +143%
8.0.3 100.000 0.102090 +136%
8.0.2 100.000 0.119326 +159%
8.0.0 100.000 0.087185 +116%
7.4.33 100.000 0.086106 +115%
8.0.7 10.000 0.015659 +181%
7.4.32 100.000 0.079514 +106%
7.4.30 100.000 0.082130 +109%
7.4.29 100.000 0.086526 +115%
7.4.27 100.000 0.088597 +118%
8.0.3 10.000 0.016233 +187%
7.4.28 100.000 0.090805 +121%
7.4.24 100.000 0.086486 +115%
7.4.7 100.000 0.089956 +120%
7.4.6 100.000 0.087939 +117%
7.4.5 100.000 0.086903 +116%
7.4.4 100.000 0.086584 +115%
8.0.2 10.000 0.017731 +205%
8.0.0 10.000 0.013554 +156%
7.4.3 100.000 0.082354 +110%
7.4.33 10.000 0.011184 +129%
7.4.32 10.000 0.010505 +121%
7.4.30 10.000 0.011088 +128%
7.4.29 10.000 0.015470 +179%
7.3.17 100.000 0.084482 +112%
7.3.16 100.000 0.088535 +118%
7.4.28 10.000 0.013679 +158%
7.4.23 100.000 0.090776 +121%
7.4.21 100.000 0.091535 +122%
7.4.20 100.000 0.087141 +116%
7.4.24 10.000 0.012984 +150%
7.4.16 100.000 0.106543 +142%
7.4.15 10.000 0.025756 +297%
7.4.15 100.000 0.132653 +176%
7.4.13 100.000 0.086432 +115%
7.4.27 10.000 0.014168 +164%
7.4.23 10.000 0.013752 +159%
7.4.22 10.000 0.014031 +162%
7.4.22 100.000 0.082814 +110%
7.4.21 10.000 0.015094 +174%
7.4.20 10.000 0.014409 +166%
7.4.16 10.000 0.017113 +198%
7.4.13 10.000 0.013216 +153%
7.4.12 10.000 0.012510 +144%
7.4.12 100.000 0.103048 +137%
7.4.11 100.000 0.099959 +133%
7.4.11 10.000 0.012596 +145%
7.4.10 10.000 0.013487 +156%
7.4.10 100.000 0.083920 +112%
7.4.7 10.000 0.013797 +159%
7.4.6 10.000 0.015319 +177%
7.4.5 10.000 0.014329 +165%
7.4.4 10.000 0.013570 +157%
7.4.2 10.000 0.015773 +182%
7.4.2 100.000 0.088796 +118%
7.4.3 10.000 0.013641 +157%
7.4.1 10.000 0.016418 +190%
7.4.1 100.000 0.088799 +118%
7.4.0 100.000 0.108346 +144%
7.3.33 100.000 0.086023 +114%
7.3.31 100.000 0.082633 +110%
7.3.18 100.000 0.087247 +116%
7.3.33 10.000 0.011743 +136%
7.3.30 100.000 0.082384 +110%
7.4.0 10.000 0.013026 +150%
7.3.31 10.000 0.013667 +158%
7.3.29 10.000 0.011854 +137%
7.3.29 100.000 0.082523 +110%
7.3.28 10.000 0.014898 +172%
7.3.28 100.000 0.083270 +111%
7.3.27 10.000 0.017300 +200%
7.3.27 100.000 0.107681 +143%
7.3.30 10.000 0.014437 +167%
7.3.24 10.000 0.012879 +149%
7.3.24 100.000 0.091794 +122%
7.3.23 10.000 0.015241 +176%
7.3.23 100.000 0.093163 +124%
7.3.22 10.000 0.014935 +172%
7.3.22 100.000 0.093666 +125%
7.3.19 10.000 0.014774 +171%
7.3.19 100.000 0.093282 +124%
7.3.18 10.000 0.013314 +154%
7.3.17 10.000 0.013502 +156%
7.3.9 10.000 0.013283 +153%
7.3.9 100.000 0.114903 +153%
7.3.8 10.000 0.012342 +142%
7.3.8 100.000 0.114667 +152%
7.3.16 10.000 0.013016 +150%
7.3.15 10.000 0.013189 +152%
7.3.14 10.000 0.016585 +191%
7.3.13 10.000 0.016235 +187%
7.3.12 10.000 0.014139 +163%
7.3.11 10.000 0.011324 +131%
7.2.34 10.000 0.012714 +147%
7.2.33 10.000 0.012859 +148%
7.2.31 10.000 0.014920 +172%
7.2.30 10.000 0.014543 +168%
7.2.29 10.000 0.013883 +160%
7.2.28 10.000 0.013888 +160%
7.2.27 10.000 0.017342 +200%
7.2.26 10.000 0.017253 +199%
7.2.25 10.000 0.014745 +170%
7.2.24 10.000 0.011917 +138%
7.2.22 10.000 0.014172 +164%
7.2.21 10.000 0.012781 +148%
7.1.33 10.000 0.014186 +164%
7.1.32 10.000 0.014109 +163%
7.1.31 10.000 0.013476 +156%
7.1.0 10.000 0.036450 +421%
7.0.33 10.000 0.014182 +164%
7.0.7 10.000 0.035616 +411%
5.6.40 10.000 0.017077 +197%
5.6.22 10.000 0.051457 +594%
5.5.36 10.000 0.057179 +660%
5.4.45 10.000 0.056120 +648%
5.3.29 10.000 0.079160 +914%