Obtain file extension with explode
<?php
$this->start($loop);
$file = '/tmp/'.uniqid().'.jpg';
for ($i = 0; $i < $this->loop; ++$i) {
$value = explode('.', $file);
$value = strtolower(end($value));
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.037656 | +189% |
8.3.10 | 100.000 | 0.031487 | +158% |
8.3.9 | 100.000 | 0.031991 | +161% |
7.3.33 | 100.000 | 0.025312 | +127% |
7.3.31 | 100.000 | 0.025759 | +129% |
7.3.30 | 100.000 | 0.024405 | +123% |
7.3.29 | 100.000 | 0.028518 | +143% |
7.3.28 | 100.000 | 0.025324 | +127% |
7.3.27 | 100.000 | 0.033627 | +169% |
7.3.24 | 100.000 | 0.025016 | +126% |
7.3.23 | 100.000 | 0.030421 | +153% |
7.3.22 | 100.000 | 0.025487 | +128% |
7.3.19 | 100.000 | 0.026279 | +132% |
7.3.18 | 100.000 | 0.026803 | +135% |
7.3.17 | 100.000 | 0.024536 | +123% |
7.3.16 | 100.000 | 0.024233 | +122% |
7.3.15 | 100.000 | 0.024144 | +121% |
7.3.14 | 100.000 | 0.027861 | +140% |
7.3.13 | 100.000 | 0.029404 | +148% |
7.3.12 | 100.000 | 0.025667 | +129% |
7.3.11 | 100.000 | 0.026654 | +134% |
7.3.9 | 100.000 | 0.028014 | +141% |
7.3.8 | 100.000 | 0.028932 | +145% |
7.2.29 | 100.000 | 0.028846 | +145% |
8.3.13 | 10.000 | 0.005530 | +257% |
7.2.34 | 100.000 | 0.028859 | +145% |
7.2.33 | 100.000 | 0.028656 | +144% |
7.2.31 | 100.000 | 0.029160 | +146% |
7.2.30 | 100.000 | 0.027305 | +137% |
8.3.10 | 10.000 | 0.004772 | +222% |
7.2.28 | 100.000 | 0.029996 | +151% |
7.2.27 | 100.000 | 0.031475 | +158% |
7.2.26 | 100.000 | 0.030549 | +153% |
7.2.25 | 100.000 | 0.028726 | +144% |
7.2.24 | 100.000 | 0.028101 | +141% |
7.2.22 | 100.000 | 0.032207 | +162% |
7.2.21 | 100.000 | 0.032535 | +163% |
7.1.33 | 100.000 | 0.029557 | +148% |
7.1.32 | 100.000 | 0.039615 | +199% |
7.1.31 | 100.000 | 0.039830 | +200% |
7.1.0 | 100.000 | 0.210123 | +1055% |
7.0.33 | 100.000 | 0.029879 | +150% |
7.0.7 | 100.000 | 0.199901 | +1004% |
5.6.40 | 100.000 | 0.075456 | +379% |
5.6.22 | 100.000 | 0.417857 | +2099% |
5.5.36 | 100.000 | 0.482106 | +2422% |
5.4.45 | 100.000 | 0.486737 | +2445% |
5.3.29 | 100.000 | 0.571777 | +2872% |
8.3.9 | 10.000 | 0.004670 | +217% |
8.0.30 | 100.000 | 0.028007 | +141% |
8.0.29 | 100.000 | 0.020045 | +101% |
8.0.28 | 100.000 | 0.020525 | +103% |
8.0.27 | 100.000 | 0.022796 | +115% |
8.0.26 | 100.000 | 0.022942 | +115% |
8.0.25 | 100.000 | 0.023503 | +118% |
8.0.24 | 100.000 | 0.021368 | +107% |
8.0.23 | 100.000 | 0.022578 | +113% |
8.0.20 | 10.000 | 0.002268 | +105% |
8.0.20 | 100.000 | 0.019909 | 100% |
8.0.19 | 10.000 | 0.003132 | +146% |
8.0.19 | 100.000 | 0.026962 | +135% |
8.0.17 | 10.000 | 0.003072 | +143% |
8.0.17 | 100.000 | 0.026793 | +135% |
8.0.16 | 10.000 | 0.003460 | +161% |
8.0.16 | 100.000 | 0.023990 | +120% |
8.0.14 | 10.000 | 0.003144 | +146% |
8.0.14 | 100.000 | 0.026921 | +135% |
8.0.11 | 100.000 | 0.024799 | +125% |
8.0.10 | 100.000 | 0.022693 | +114% |
8.0.9 | 100.000 | 0.026177 | +131% |
8.0.8 | 100.000 | 0.028966 | +145% |
8.0.7 | 100.000 | 0.026415 | +133% |
8.0.3 | 100.000 | 0.032321 | +162% |
8.0.2 | 100.000 | 0.037311 | +187% |
8.0.0 | 100.000 | 0.023930 | +120% |
7.4.33 | 100.000 | 0.025444 | +128% |
7.4.32 | 100.000 | 0.022964 | +115% |
7.4.30 | 100.000 | 0.022072 | +111% |
7.4.28 | 100.000 | 0.026116 | +131% |
7.4.27 | 100.000 | 0.026313 | +132% |
7.4.24 | 100.000 | 0.024957 | +125% |
7.4.23 | 100.000 | 0.026202 | +132% |
7.4.22 | 100.000 | 0.023317 | +117% |
8.0.11 | 10.000 | 0.003298 | +153% |
8.0.10 | 10.000 | 0.003404 | +158% |
8.0.0 | 10.000 | 0.003046 | +142% |
7.4.29 | 100.000 | 0.027719 | +139% |
7.4.21 | 10.000 | 0.002821 | +131% |
7.4.21 | 100.000 | 0.030009 | +151% |
7.4.20 | 10.000 | 0.003525 | +164% |
7.4.20 | 100.000 | 0.027165 | +136% |
7.4.16 | 100.000 | 0.031818 | +160% |
7.4.15 | 100.000 | 0.034400 | +173% |
7.4.33 | 10.000 | 0.003426 | +159% |
7.4.32 | 10.000 | 0.002832 | +132% |
7.4.30 | 10.000 | 0.002379 | +111% |
7.4.29 | 10.000 | 0.003482 | +162% |
7.4.24 | 10.000 | 0.003360 | +156% |
7.4.23 | 10.000 | 0.003071 | +143% |
7.4.22 | 10.000 | 0.002731 | +127% |
7.4.13 | 100.000 | 0.023344 | +117% |
7.4.12 | 100.000 | 0.026419 | +133% |
7.4.11 | 100.000 | 0.025302 | +127% |
7.4.10 | 100.000 | 0.026187 | +132% |
8.0.2 | 10.000 | 0.004341 | +202% |
7.4.0 | 100.000 | 0.027438 | +138% |
8.0.30 | 10.000 | 0.003726 | +173% |
8.0.29 | 10.000 | 0.002172 | +101% |
8.0.28 | 10.000 | 0.002518 | +117% |
8.0.27 | 10.000 | 0.003150 | +146% |
8.0.26 | 10.000 | 0.002469 | +115% |
8.0.25 | 10.000 | 0.003013 | +140% |
8.0.24 | 10.000 | 0.002493 | +116% |
8.0.23 | 10.000 | 0.002151 | 100% |
8.0.9 | 10.000 | 0.002820 | +131% |
8.0.8 | 10.000 | 0.003497 | +163% |
8.0.7 | 10.000 | 0.003501 | +163% |
8.0.3 | 10.000 | 0.004227 | +197% |
7.4.28 | 10.000 | 0.003514 | +163% |
7.4.27 | 10.000 | 0.003431 | +160% |
7.4.16 | 10.000 | 0.004370 | +203% |
7.4.15 | 10.000 | 0.005153 | +240% |
7.4.13 | 10.000 | 0.002830 | +132% |
7.4.12 | 10.000 | 0.003072 | +143% |
7.4.11 | 10.000 | 0.003422 | +159% |
7.4.10 | 10.000 | 0.003760 | +175% |
7.4.7 | 10.000 | 0.003245 | +151% |
7.4.7 | 100.000 | 0.026276 | +132% |
7.4.6 | 10.000 | 0.002994 | +139% |
7.4.6 | 100.000 | 0.026536 | +133% |
7.4.5 | 10.000 | 0.003388 | +158% |
7.4.5 | 100.000 | 0.025581 | +128% |
7.4.4 | 10.000 | 0.002670 | +124% |
7.4.4 | 100.000 | 0.025220 | +127% |
7.4.3 | 10.000 | 0.002937 | +137% |
7.4.3 | 100.000 | 0.024286 | +122% |
7.4.1 | 100.000 | 0.029606 | +149% |
7.4.2 | 10.000 | 0.003730 | +173% |
7.4.2 | 100.000 | 0.026107 | +131% |
7.4.1 | 10.000 | 0.004004 | +186% |
7.4.0 | 10.000 | 0.003034 | +141% |
7.3.33 | 10.000 | 0.003162 | +147% |
7.3.31 | 10.000 | 0.003582 | +167% |
7.3.30 | 10.000 | 0.003112 | +145% |
7.3.29 | 10.000 | 0.003028 | +141% |
7.3.28 | 10.000 | 0.003943 | +183% |
7.3.27 | 10.000 | 0.004252 | +198% |
7.3.24 | 10.000 | 0.003233 | +150% |
7.3.23 | 10.000 | 0.003635 | +169% |
7.3.22 | 10.000 | 0.002986 | +139% |
7.3.19 | 10.000 | 0.003534 | +164% |
7.3.18 | 10.000 | 0.004103 | +191% |
7.3.17 | 10.000 | 0.002996 | +139% |
7.3.16 | 10.000 | 0.002911 | +135% |
7.3.15 | 10.000 | 0.003335 | +155% |
7.3.14 | 10.000 | 0.003864 | +180% |
7.3.13 | 10.000 | 0.004050 | +188% |
7.3.12 | 10.000 | 0.003602 | +167% |
7.3.11 | 10.000 | 0.003122 | +145% |
7.3.9 | 10.000 | 0.003397 | +158% |
7.3.8 | 10.000 | 0.003150 | +146% |
7.2.34 | 10.000 | 0.003715 | +173% |
7.2.33 | 10.000 | 0.004091 | +190% |
7.2.31 | 10.000 | 0.003979 | +185% |
7.2.30 | 10.000 | 0.003063 | +142% |
7.2.29 | 10.000 | 0.003539 | +165% |
7.2.28 | 10.000 | 0.003941 | +183% |
7.2.27 | 10.000 | 0.004585 | +213% |
7.2.26 | 10.000 | 0.003980 | +185% |
7.2.25 | 10.000 | 0.003983 | +185% |
7.2.24 | 10.000 | 0.003079 | +143% |
7.2.22 | 10.000 | 0.003788 | +176% |
7.2.21 | 10.000 | 0.003437 | +160% |
7.1.33 | 10.000 | 0.004036 | +188% |
7.1.32 | 10.000 | 0.004521 | +210% |
7.1.31 | 10.000 | 0.004299 | +200% |
7.1.0 | 10.000 | 0.021534 | +1001% |
7.0.33 | 10.000 | 0.004026 | +187% |
7.0.7 | 10.000 | 0.020758 | +965% |
5.6.40 | 10.000 | 0.010200 | +474% |
5.6.22 | 10.000 | 0.043318 | +2014% |
5.5.36 | 10.000 | 0.049664 | +2309% |
5.4.45 | 10.000 | 0.049806 | +2316% |
5.3.29 | 10.000 | 0.058022 | +2697% |