FileExistsTest

Check if file (existing) exists with file_exists


<?php 

$file 
$this->getTempFile();

$this->start($loop);

for (
$i 0$i $this->loop; ++$i) {
    
clearstatcache();
    
$value file_exists($file);
}

unlink($file);

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.268223 +226%
8.3.10 100.000 0.259066 +218%
8.3.9 100.000 0.252545 +213%
7.3.33 100.000 0.162811 +137%
7.3.31 100.000 0.126523 +107%
7.3.30 100.000 0.126867 +107%
7.3.29 100.000 0.133995 +113%
7.3.28 100.000 0.131038 +111%
7.3.27 100.000 0.160164 +135%
7.3.24 100.000 0.131780 +111%
7.3.23 100.000 0.138567 +117%
7.3.22 100.000 0.126491 +107%
7.3.19 100.000 0.127184 +107%
7.3.18 100.000 0.120218 +101%
7.3.17 100.000 0.120449 +102%
7.3.16 100.000 0.121348 +102%
7.3.15 100.000 0.118574 100%
7.3.14 100.000 0.127030 +107%
7.3.13 100.000 0.122848 +104%
7.3.12 100.000 0.120150 +101%
7.3.11 100.000 0.226245 +191%
7.3.9 100.000 0.338264 +285%
7.3.8 100.000 0.304750 +257%
7.2.29 100.000 0.121850 +103%
8.3.13 10.000 0.029136 +213%
7.2.34 100.000 0.158446 +134%
7.2.33 100.000 0.129617 +109%
7.2.31 100.000 0.126996 +107%
7.2.30 100.000 0.138406 +117%
8.3.10 10.000 0.029109 +213%
7.2.28 100.000 0.121470 +102%
7.2.27 100.000 0.129958 +110%
7.2.26 100.000 0.121687 +103%
7.2.25 100.000 0.119008 100%
7.2.24 100.000 0.239169 +202%
7.2.22 100.000 0.343689 +290%
7.2.21 100.000 0.311137 +262%
7.1.33 100.000 0.155349 +131%
7.1.32 100.000 0.347798 +293%
7.1.31 100.000 0.327914 +277%
7.1.0 100.000 0.282351 +238%
7.0.33 100.000 0.163681 +138%
7.0.7 100.000 0.247368 +209%
5.6.40 100.000 0.184941 +156%
5.6.22 100.000 0.361631 +305%
5.5.36 100.000 0.382844 +323%
5.4.45 100.000 0.378545 +319%
5.3.29 100.000 0.466640 +394%
8.3.9 10.000 0.029161 +213%
8.0.30 100.000 0.204711 +173%
8.0.29 100.000 0.130834 +110%
8.0.28 100.000 0.130699 +110%
8.0.27 100.000 0.139297 +117%
8.0.26 100.000 0.138699 +117%
8.0.25 100.000 0.132334 +112%
8.0.24 100.000 0.129460 +109%
8.0.23 100.000 0.126097 +106%
8.0.20 10.000 0.015674 +115%
8.0.20 100.000 0.131209 +111%
8.0.19 10.000 0.021859 +160%
8.0.19 100.000 0.137572 +116%
8.0.17 10.000 0.020365 +149%
8.0.17 100.000 0.136226 +115%
8.0.16 10.000 0.021192 +155%
8.0.16 100.000 0.137843 +116%
8.0.14 10.000 0.020622 +151%
8.0.14 100.000 0.158070 +133%
8.0.11 100.000 0.127864 +108%
8.0.10 100.000 0.139750 +118%
8.0.9 100.000 0.126005 +106%
8.0.8 100.000 0.127276 +107%
8.0.7 100.000 0.129201 +109%
8.0.3 100.000 0.157882 +133%
8.0.2 100.000 0.176340 +149%
8.0.0 100.000 0.127946 +108%
7.4.33 100.000 0.173620 +146%
7.4.32 100.000 0.130759 +110%
7.4.30 100.000 0.129478 +109%
7.4.28 100.000 0.138802 +117%
7.4.27 100.000 0.141883 +120%
7.4.24 100.000 0.131544 +111%
7.4.23 100.000 0.124788 +105%
7.4.22 100.000 0.125930 +106%
8.0.11 10.000 0.019554 +143%
8.0.10 10.000 0.019243 +141%
8.0.0 10.000 0.017648 +129%
7.4.29 100.000 0.140301 +118%
7.4.21 10.000 0.019137 +140%
7.4.21 100.000 0.127592 +108%
7.4.20 10.000 0.019692 +144%
7.4.20 100.000 0.136306 +115%
7.4.16 100.000 0.155626 +131%
7.4.15 100.000 0.179634 +151%
7.4.33 10.000 0.020627 +151%
7.4.32 10.000 0.016863 +123%
7.4.30 10.000 0.014675 +107%
7.4.29 10.000 0.021977 +161%
7.4.24 10.000 0.019421 +142%
7.4.23 10.000 0.019406 +142%
7.4.22 10.000 0.018472 +135%
7.4.13 100.000 0.130237 +110%
7.4.12 100.000 0.145662 +123%
7.4.11 100.000 0.131743 +111%
7.4.10 100.000 0.128235 +108%
8.0.2 10.000 0.027105 +198%
7.4.0 100.000 0.271275 +229%
8.0.30 10.000 0.024326 +178%
8.0.29 10.000 0.015206 +111%
8.0.28 10.000 0.016144 +118%
8.0.27 10.000 0.017097 +125%
8.0.26 10.000 0.018829 +138%
8.0.25 10.000 0.016191 +119%
8.0.24 10.000 0.017715 +130%
8.0.23 10.000 0.013660 100%
8.0.9 10.000 0.018798 +138%
8.0.8 10.000 0.016320 +119%
8.0.7 10.000 0.019883 +146%
8.0.3 10.000 0.024108 +176%
7.4.28 10.000 0.021147 +155%
7.4.27 10.000 0.020146 +147%
7.4.16 10.000 0.023592 +173%
7.4.15 10.000 0.026374 +193%
7.4.13 10.000 0.017463 +128%
7.4.12 10.000 0.017319 +127%
7.4.11 10.000 0.019667 +144%
7.4.10 10.000 0.018236 +133%
7.4.7 10.000 0.018588 +136%
7.4.7 100.000 0.130745 +110%
7.4.6 10.000 0.017681 +129%
7.4.6 100.000 0.122830 +104%
7.4.5 10.000 0.018724 +137%
7.4.5 100.000 0.127392 +107%
7.4.4 10.000 0.017406 +127%
7.4.4 100.000 0.119466 +101%
7.4.3 10.000 0.019624 +144%
7.4.3 100.000 0.122617 +103%
7.4.1 100.000 0.122413 +103%
7.4.2 10.000 0.020726 +152%
7.4.2 100.000 0.123401 +104%
7.4.1 10.000 0.020657 +151%
7.4.0 10.000 0.027780 +203%
7.3.33 10.000 0.020194 +148%
7.3.31 10.000 0.018105 +133%
7.3.30 10.000 0.016911 +124%
7.3.29 10.000 0.019521 +143%
7.3.28 10.000 0.019971 +146%
7.3.27 10.000 0.023888 +175%
7.3.24 10.000 0.017838 +131%
7.3.23 10.000 0.017435 +128%
7.3.22 10.000 0.017460 +128%
7.3.19 10.000 0.018214 +133%
7.3.18 10.000 0.018945 +139%
7.3.17 10.000 0.021433 +157%
7.3.16 10.000 0.017451 +128%
7.3.15 10.000 0.017426 +128%
7.3.14 10.000 0.021816 +160%
7.3.13 10.000 0.019554 +143%
7.3.12 10.000 0.018295 +134%
7.3.11 10.000 0.024917 +182%
7.3.9 10.000 0.032029 +234%
7.3.8 10.000 0.030131 +221%
7.2.34 10.000 0.020229 +148%
7.2.33 10.000 0.017059 +125%
7.2.31 10.000 0.019334 +142%
7.2.30 10.000 0.018922 +139%
7.2.29 10.000 0.018983 +139%
7.2.28 10.000 0.019504 +143%
7.2.27 10.000 0.020132 +147%
7.2.26 10.000 0.021066 +154%
7.2.25 10.000 0.017365 +127%
7.2.24 10.000 0.024654 +180%
7.2.22 10.000 0.032485 +238%
7.2.21 10.000 0.031332 +229%
7.1.33 10.000 0.020247 +148%
7.1.32 10.000 0.033729 +247%
7.1.31 10.000 0.032487 +238%
7.1.0 10.000 0.028916 +212%
7.0.33 10.000 0.020362 +149%
7.0.7 10.000 0.025525 +187%
5.6.40 10.000 0.022719 +166%
5.6.22 10.000 0.038028 +278%
5.5.36 10.000 0.039546 +289%
5.4.45 10.000 0.038983 +285%
5.3.29 10.000 0.048104 +352%