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.3.10 100.000 0.037514 +103%
8.3.9 100.000 0.036293 100%
7.3.33 100.000 0.088111 +243%
7.3.31 100.000 0.082633 +228%
7.3.30 100.000 0.082384 +227%
7.3.29 100.000 0.082523 +227%
7.3.28 100.000 0.083270 +229%
7.3.27 100.000 0.107681 +297%
7.3.24 100.000 0.091794 +253%
7.3.23 100.000 0.093163 +257%
7.3.22 100.000 0.093666 +258%
7.3.19 100.000 0.093282 +257%
7.3.18 100.000 0.087247 +240%
7.3.17 100.000 0.084482 +233%
7.3.16 100.000 0.088535 +244%
7.3.15 100.000 0.086117 +237%
7.3.14 100.000 0.090421 +249%
7.3.13 100.000 0.086098 +237%
7.3.12 100.000 0.082651 +228%
7.3.11 100.000 0.100232 +276%
7.3.9 100.000 0.114903 +317%
7.3.8 100.000 0.114667 +316%
7.2.30 100.000 0.089291 +246%
8.3.10 10.000 0.005532 100%
7.2.34 100.000 0.092315 +254%
7.2.33 100.000 0.092284 +254%
7.2.31 100.000 0.092877 +256%
7.2.29 100.000 0.088567 +244%
7.2.28 100.000 0.092411 +255%
7.2.27 100.000 0.098527 +271%
7.2.26 100.000 0.093709 +258%
7.2.25 100.000 0.084163 +232%
7.2.24 100.000 0.098803 +272%
7.2.22 100.000 0.121459 +335%
7.2.21 100.000 0.119639 +330%
7.1.33 100.000 0.098052 +270%
7.1.32 100.000 0.126720 +349%
7.1.31 100.000 0.126572 +349%
7.1.0 100.000 0.346409 +954%
7.0.33 100.000 0.099694 +275%
7.0.7 100.000 0.334298 +921%
5.6.40 100.000 0.127169 +350%
5.6.22 100.000 0.489942 +1350%
5.5.36 100.000 0.567422 +1563%
5.4.45 100.000 0.551170 +1519%
5.3.29 100.000 0.731934 +2017%
8.3.9 10.000 0.005543 100%
8.0.30 100.000 0.094565 +261%
8.0.29 100.000 0.077406 +213%
8.0.28 100.000 0.075548 +208%
8.0.27 100.000 0.079777 +220%
8.0.26 100.000 0.080418 +222%
8.0.25 100.000 0.075568 +208%
8.0.24 100.000 0.075196 +207%
8.0.23 100.000 0.078425 +216%
8.0.20 10.000 0.009360 +169%
8.0.20 100.000 0.077225 +213%
8.0.19 10.000 0.013012 +235%
8.0.19 100.000 0.081811 +225%
8.0.17 10.000 0.012843 +232%
8.0.17 100.000 0.088623 +244%
8.0.16 10.000 0.013252 +240%
8.0.16 100.000 0.084675 +233%
8.0.14 10.000 0.013852 +250%
8.0.14 100.000 0.090697 +250%
8.0.11 100.000 0.081230 +224%
8.0.10 100.000 0.080948 +223%
8.0.9 100.000 0.093544 +258%
8.0.8 100.000 0.118480 +326%
8.0.7 100.000 0.082498 +227%
8.0.3 100.000 0.102090 +281%
8.0.2 100.000 0.119326 +329%
8.0.0 100.000 0.087185 +240%
7.4.33 100.000 0.088962 +245%
7.4.32 100.000 0.079514 +219%
7.4.30 100.000 0.082130 +226%
7.4.28 100.000 0.090805 +250%
7.4.27 100.000 0.088597 +244%
7.4.24 100.000 0.086486 +238%
7.4.23 100.000 0.090776 +250%
7.4.22 100.000 0.082814 +228%
8.0.11 10.000 0.013409 +242%
8.0.10 10.000 0.013517 +244%
8.0.0 10.000 0.013554 +245%
7.4.29 100.000 0.086526 +238%
7.4.21 10.000 0.015094 +273%
7.4.21 100.000 0.091535 +252%
7.4.20 10.000 0.014409 +260%
7.4.20 100.000 0.087141 +240%
7.4.16 100.000 0.106543 +294%
7.4.15 100.000 0.132653 +366%
7.4.33 10.000 0.011903 +215%
7.4.32 10.000 0.010505 +190%
7.4.30 10.000 0.011088 +200%
7.4.29 10.000 0.015470 +280%
7.4.24 10.000 0.012984 +235%
7.4.23 10.000 0.013752 +249%
7.4.22 10.000 0.014031 +254%
7.4.13 100.000 0.086432 +238%
7.4.12 100.000 0.103048 +284%
7.4.11 100.000 0.099959 +275%
7.4.10 100.000 0.083920 +231%
8.0.2 10.000 0.017731 +321%
7.4.0 100.000 0.108346 +299%
8.0.30 10.000 0.013548 +245%
8.0.29 10.000 0.008661 +157%
8.0.28 10.000 0.010022 +181%
8.0.27 10.000 0.011448 +207%
8.0.26 10.000 0.012939 +234%
8.0.25 10.000 0.011053 +200%
8.0.24 10.000 0.009584 +173%
8.0.23 10.000 0.009214 +167%
8.0.9 10.000 0.013118 +237%
8.0.8 10.000 0.012429 +225%
8.0.7 10.000 0.015659 +283%
8.0.3 10.000 0.016233 +293%
7.4.28 10.000 0.013679 +247%
7.4.27 10.000 0.014168 +256%
7.4.16 10.000 0.017113 +309%
7.4.15 10.000 0.025756 +466%
7.4.13 10.000 0.013216 +239%
7.4.12 10.000 0.012510 +226%
7.4.11 10.000 0.012596 +228%
7.4.10 10.000 0.013487 +244%
7.4.7 10.000 0.013797 +249%
7.4.7 100.000 0.089956 +248%
7.4.6 10.000 0.015319 +277%
7.4.6 100.000 0.087939 +242%
7.4.5 10.000 0.014329 +259%
7.4.5 100.000 0.086903 +239%
7.4.4 10.000 0.013570 +245%
7.4.4 100.000 0.086584 +239%
7.4.3 10.000 0.013641 +247%
7.4.3 100.000 0.082354 +227%
7.4.1 100.000 0.088799 +245%
7.4.2 10.000 0.015773 +285%
7.4.2 100.000 0.088796 +245%
7.4.1 10.000 0.016418 +297%
7.4.0 10.000 0.013026 +235%
7.3.33 10.000 0.012114 +219%
7.3.31 10.000 0.013667 +247%
7.3.30 10.000 0.014437 +261%
7.3.29 10.000 0.011854 +214%
7.3.28 10.000 0.014898 +269%
7.3.27 10.000 0.017300 +313%
7.3.24 10.000 0.012879 +233%
7.3.23 10.000 0.015241 +276%
7.3.22 10.000 0.014935 +270%
7.3.19 10.000 0.014774 +267%
7.3.18 10.000 0.013314 +241%
7.3.17 10.000 0.013502 +244%
7.3.16 10.000 0.013016 +235%
7.3.15 10.000 0.013189 +238%
7.3.14 10.000 0.016585 +300%
7.3.13 10.000 0.016235 +293%
7.3.12 10.000 0.014139 +256%
7.3.11 10.000 0.011324 +205%
7.3.9 10.000 0.013283 +240%
7.3.8 10.000 0.012342 +223%
7.2.34 10.000 0.012989 +235%
7.2.33 10.000 0.012859 +232%
7.2.31 10.000 0.014920 +270%
7.2.30 10.000 0.014543 +263%
7.2.29 10.000 0.013883 +251%
7.2.28 10.000 0.013888 +251%
7.2.27 10.000 0.017342 +313%
7.2.26 10.000 0.017253 +312%
7.2.25 10.000 0.014745 +267%
7.2.24 10.000 0.011917 +215%
7.2.22 10.000 0.014172 +256%
7.2.21 10.000 0.012781 +231%
7.1.33 10.000 0.014320 +259%
7.1.32 10.000 0.014109 +255%
7.1.31 10.000 0.013476 +244%
7.1.0 10.000 0.036450 +659%
7.0.33 10.000 0.014281 +258%
7.0.7 10.000 0.035616 +644%
5.6.40 10.000 0.017160 +310%
5.6.22 10.000 0.051457 +930%
5.5.36 10.000 0.057179 +1034%
5.4.45 10.000 0.056120 +1015%
5.3.29 10.000 0.079160 +1431%