Check if file (existing) exists with is_file
<?php
$file = $this->getTempFile();
$this->start($loop);
for ($i = 0; $i < $this->loop; ++$i) {
clearstatcache();
$value = is_file($file);
}
unlink($file);
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.215627 | 100% |
8.3.10 | 100.000 | 0.204265 | 100% |
8.3.9 | 100.000 | 0.196641 | 100% |
7.3.33 | 100.000 | 0.146998 | 100% |
7.3.31 | 100.000 | 0.126173 | 100% |
7.3.30 | 100.000 | 0.124034 | 100% |
7.3.29 | 100.000 | 0.134013 | 100% |
7.3.28 | 100.000 | 0.124708 | 100% |
7.3.27 | 100.000 | 0.160264 | 100% |
7.3.24 | 100.000 | 0.130243 | 100% |
7.3.23 | 100.000 | 0.134194 | 100% |
7.3.22 | 100.000 | 0.124478 | 100% |
7.3.19 | 100.000 | 0.128461 | +101% |
7.3.18 | 100.000 | 0.114740 | 100% |
7.3.17 | 100.000 | 0.118638 | 100% |
7.3.16 | 100.000 | 0.115025 | 100% |
7.3.15 | 100.000 | 0.121181 | +102% |
7.3.14 | 100.000 | 0.125855 | 100% |
7.3.13 | 100.000 | 0.118181 | 100% |
7.3.12 | 100.000 | 0.113020 | 100% |
7.3.11 | 100.000 | 0.221518 | 100% |
7.3.9 | 100.000 | 0.324861 | 100% |
7.3.8 | 100.000 | 0.311784 | +102% |
7.2.29 | 100.000 | 0.127399 | +105% |
8.3.13 | 10.000 | 0.025031 | 100% |
7.2.34 | 100.000 | 0.146367 | 100% |
7.2.33 | 100.000 | 0.121333 | 100% |
7.2.31 | 100.000 | 0.123981 | 100% |
7.2.30 | 100.000 | 0.124236 | 100% |
8.3.10 | 10.000 | 0.022905 | 100% |
7.2.28 | 100.000 | 0.113417 | 100% |
7.2.27 | 100.000 | 0.119712 | 100% |
7.2.26 | 100.000 | 0.119841 | 100% |
7.2.25 | 100.000 | 0.117881 | 100% |
7.2.24 | 100.000 | 0.230830 | 100% |
7.2.22 | 100.000 | 0.330163 | 100% |
7.2.21 | 100.000 | 0.304635 | 100% |
7.1.33 | 100.000 | 0.145580 | 100% |
7.1.32 | 100.000 | 0.346150 | 100% |
7.1.31 | 100.000 | 0.307967 | 100% |
7.1.0 | 100.000 | 0.311250 | +110% |
7.0.33 | 100.000 | 0.151656 | 100% |
7.0.7 | 100.000 | 0.273108 | +110% |
5.6.40 | 100.000 | 0.175412 | 100% |
5.6.22 | 100.000 | 0.401803 | +111% |
5.5.36 | 100.000 | 0.390030 | +102% |
5.4.45 | 100.000 | 0.406633 | +107% |
5.3.29 | 100.000 | 0.439282 | 100% |
8.3.9 | 10.000 | 0.024396 | 100% |
8.0.30 | 100.000 | 0.172120 | 100% |
8.0.29 | 100.000 | 0.118945 | 100% |
8.0.28 | 100.000 | 0.121243 | 100% |
8.0.27 | 100.000 | 0.131394 | 100% |
8.0.26 | 100.000 | 0.137319 | 100% |
8.0.25 | 100.000 | 0.125549 | 100% |
8.0.24 | 100.000 | 0.119975 | 100% |
8.0.23 | 100.000 | 0.129815 | +103% |
8.0.20 | 10.000 | 0.014389 | 100% |
8.0.20 | 100.000 | 0.125249 | 100% |
8.0.19 | 10.000 | 0.020378 | 100% |
8.0.19 | 100.000 | 0.133626 | 100% |
8.0.17 | 10.000 | 0.019710 | 100% |
8.0.17 | 100.000 | 0.136427 | 100% |
8.0.16 | 10.000 | 0.018811 | 100% |
8.0.16 | 100.000 | 0.139346 | +101% |
8.0.14 | 10.000 | 0.020375 | 100% |
8.0.14 | 100.000 | 0.135841 | 100% |
8.0.11 | 100.000 | 0.123070 | 100% |
8.0.10 | 100.000 | 0.130267 | 100% |
8.0.9 | 100.000 | 0.127589 | +101% |
8.0.8 | 100.000 | 0.126930 | 100% |
8.0.7 | 100.000 | 0.137998 | +107% |
8.0.3 | 100.000 | 0.153809 | 100% |
8.0.2 | 100.000 | 0.186881 | +106% |
8.0.0 | 100.000 | 0.130323 | +102% |
7.4.33 | 100.000 | 0.153114 | 100% |
7.4.32 | 100.000 | 0.118914 | 100% |
7.4.30 | 100.000 | 0.121229 | 100% |
7.4.28 | 100.000 | 0.137662 | 100% |
7.4.27 | 100.000 | 0.144423 | +102% |
7.4.24 | 100.000 | 0.136293 | +104% |
7.4.23 | 100.000 | 0.130883 | +105% |
7.4.22 | 100.000 | 0.124367 | 100% |
8.0.11 | 10.000 | 0.018767 | 100% |
8.0.10 | 10.000 | 0.019327 | 100% |
8.0.0 | 10.000 | 0.018208 | +103% |
7.4.29 | 100.000 | 0.132570 | 100% |
7.4.21 | 10.000 | 0.018347 | 100% |
7.4.21 | 100.000 | 0.121528 | 100% |
7.4.20 | 10.000 | 0.019446 | 100% |
7.4.20 | 100.000 | 0.127511 | 100% |
7.4.16 | 100.000 | 0.153008 | 100% |
7.4.15 | 100.000 | 0.175005 | 100% |
7.4.33 | 10.000 | 0.018086 | 100% |
7.4.32 | 10.000 | 0.016762 | 100% |
7.4.30 | 10.000 | 0.013581 | 100% |
7.4.29 | 10.000 | 0.019746 | 100% |
7.4.24 | 10.000 | 0.018585 | 100% |
7.4.23 | 10.000 | 0.019061 | 100% |
7.4.22 | 10.000 | 0.016720 | 100% |
7.4.13 | 100.000 | 0.128163 | 100% |
7.4.12 | 100.000 | 0.134443 | 100% |
7.4.11 | 100.000 | 0.127299 | 100% |
7.4.10 | 100.000 | 0.122855 | 100% |
8.0.2 | 10.000 | 0.025317 | 100% |
7.4.0 | 100.000 | 0.265667 | 100% |
8.0.30 | 10.000 | 0.020316 | 100% |
8.0.29 | 10.000 | 0.013448 | 100% |
8.0.28 | 10.000 | 0.014902 | 100% |
8.0.27 | 10.000 | 0.017344 | +101% |
8.0.26 | 10.000 | 0.015759 | 100% |
8.0.25 | 10.000 | 0.015390 | 100% |
8.0.24 | 10.000 | 0.016377 | 100% |
8.0.23 | 10.000 | 0.017042 | +125% |
8.0.9 | 10.000 | 0.017492 | 100% |
8.0.8 | 10.000 | 0.020252 | +124% |
8.0.7 | 10.000 | 0.019798 | 100% |
8.0.3 | 10.000 | 0.022810 | 100% |
7.4.28 | 10.000 | 0.020447 | 100% |
7.4.27 | 10.000 | 0.021102 | +105% |
7.4.16 | 10.000 | 0.023589 | 100% |
7.4.15 | 10.000 | 0.024326 | 100% |
7.4.13 | 10.000 | 0.018296 | +105% |
7.4.12 | 10.000 | 0.015576 | 100% |
7.4.11 | 10.000 | 0.019253 | 100% |
7.4.10 | 10.000 | 0.015607 | 100% |
7.4.7 | 10.000 | 0.017147 | 100% |
7.4.7 | 100.000 | 0.126136 | 100% |
7.4.6 | 10.000 | 0.017035 | 100% |
7.4.6 | 100.000 | 0.118645 | 100% |
7.4.5 | 10.000 | 0.017164 | 100% |
7.4.5 | 100.000 | 0.118465 | 100% |
7.4.4 | 10.000 | 0.017821 | +102% |
7.4.4 | 100.000 | 0.119451 | 100% |
7.4.3 | 10.000 | 0.018206 | 100% |
7.4.3 | 100.000 | 0.112472 | 100% |
7.4.1 | 100.000 | 0.118271 | 100% |
7.4.2 | 10.000 | 0.019055 | 100% |
7.4.2 | 100.000 | 0.123502 | 100% |
7.4.1 | 10.000 | 0.020427 | 100% |
7.4.0 | 10.000 | 0.028023 | +101% |
7.3.33 | 10.000 | 0.018222 | 100% |
7.3.31 | 10.000 | 0.018344 | +101% |
7.3.30 | 10.000 | 0.018718 | +111% |
7.3.29 | 10.000 | 0.017257 | 100% |
7.3.28 | 10.000 | 0.019497 | 100% |
7.3.27 | 10.000 | 0.023954 | 100% |
7.3.24 | 10.000 | 0.017299 | 100% |
7.3.23 | 10.000 | 0.019088 | +109% |
7.3.22 | 10.000 | 0.016757 | 100% |
7.3.19 | 10.000 | 0.018359 | +101% |
7.3.18 | 10.000 | 0.017704 | 100% |
7.3.17 | 10.000 | 0.016849 | 100% |
7.3.16 | 10.000 | 0.017873 | +102% |
7.3.15 | 10.000 | 0.018668 | +107% |
7.3.14 | 10.000 | 0.020226 | 100% |
7.3.13 | 10.000 | 0.019250 | 100% |
7.3.12 | 10.000 | 0.017722 | 100% |
7.3.11 | 10.000 | 0.022812 | 100% |
7.3.9 | 10.000 | 0.032319 | +101% |
7.3.8 | 10.000 | 0.030630 | +102% |
7.2.34 | 10.000 | 0.018727 | 100% |
7.2.33 | 10.000 | 0.017399 | +102% |
7.2.31 | 10.000 | 0.017691 | 100% |
7.2.30 | 10.000 | 0.019831 | +105% |
7.2.29 | 10.000 | 0.017838 | 100% |
7.2.28 | 10.000 | 0.018202 | 100% |
7.2.27 | 10.000 | 0.021033 | +104% |
7.2.26 | 10.000 | 0.019212 | 100% |
7.2.25 | 10.000 | 0.016417 | 100% |
7.2.24 | 10.000 | 0.024524 | 100% |
7.2.22 | 10.000 | 0.033359 | +103% |
7.2.21 | 10.000 | 0.031403 | 100% |
7.1.33 | 10.000 | 0.019368 | 100% |
7.1.32 | 10.000 | 0.032471 | 100% |
7.1.31 | 10.000 | 0.030608 | 100% |
7.1.0 | 10.000 | 0.032182 | +111% |
7.0.33 | 10.000 | 0.019646 | 100% |
7.0.7 | 10.000 | 0.028446 | +111% |
5.6.40 | 10.000 | 0.022070 | 100% |
5.6.22 | 10.000 | 0.041674 | +110% |
5.5.36 | 10.000 | 0.040443 | +102% |
5.4.45 | 10.000 | 0.042446 | +109% |
5.3.29 | 10.000 | 0.045584 | 100% |
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 | +124% |
8.3.10 | 100.000 | 0.259066 | +127% |
8.3.9 | 100.000 | 0.252545 | +128% |
7.3.33 | 100.000 | 0.162811 | +111% |
7.3.31 | 100.000 | 0.126523 | 100% |
7.3.30 | 100.000 | 0.126867 | +102% |
7.3.29 | 100.000 | 0.133995 | 100% |
7.3.28 | 100.000 | 0.131038 | +105% |
7.3.27 | 100.000 | 0.160164 | 100% |
7.3.24 | 100.000 | 0.131780 | +101% |
7.3.23 | 100.000 | 0.138567 | +103% |
7.3.22 | 100.000 | 0.126491 | +102% |
7.3.19 | 100.000 | 0.127184 | 100% |
7.3.18 | 100.000 | 0.120218 | +105% |
7.3.17 | 100.000 | 0.120449 | +102% |
7.3.16 | 100.000 | 0.121348 | +105% |
7.3.15 | 100.000 | 0.118574 | 100% |
7.3.14 | 100.000 | 0.127030 | +101% |
7.3.13 | 100.000 | 0.122848 | +104% |
7.3.12 | 100.000 | 0.120150 | +106% |
7.3.11 | 100.000 | 0.226245 | +102% |
7.3.9 | 100.000 | 0.338264 | +104% |
7.3.8 | 100.000 | 0.304750 | 100% |
7.2.29 | 100.000 | 0.121850 | 100% |
8.3.13 | 10.000 | 0.029136 | +116% |
7.2.34 | 100.000 | 0.158446 | +108% |
7.2.33 | 100.000 | 0.129617 | +107% |
7.2.31 | 100.000 | 0.126996 | +102% |
7.2.30 | 100.000 | 0.138406 | +111% |
8.3.10 | 10.000 | 0.029109 | +127% |
7.2.28 | 100.000 | 0.121470 | +107% |
7.2.27 | 100.000 | 0.129958 | +109% |
7.2.26 | 100.000 | 0.121687 | +102% |
7.2.25 | 100.000 | 0.119008 | +101% |
7.2.24 | 100.000 | 0.239169 | +104% |
7.2.22 | 100.000 | 0.343689 | +104% |
7.2.21 | 100.000 | 0.311137 | +102% |
7.1.33 | 100.000 | 0.155349 | +107% |
7.1.32 | 100.000 | 0.347798 | 100% |
7.1.31 | 100.000 | 0.327914 | +106% |
7.1.0 | 100.000 | 0.282351 | 100% |
7.0.33 | 100.000 | 0.163681 | +108% |
7.0.7 | 100.000 | 0.247368 | 100% |
5.6.40 | 100.000 | 0.184941 | +105% |
5.6.22 | 100.000 | 0.361631 | 100% |
5.5.36 | 100.000 | 0.382844 | 100% |
5.4.45 | 100.000 | 0.378545 | 100% |
5.3.29 | 100.000 | 0.466640 | +106% |
8.3.9 | 10.000 | 0.029161 | +120% |
8.0.30 | 100.000 | 0.204711 | +119% |
8.0.29 | 100.000 | 0.130834 | +110% |
8.0.28 | 100.000 | 0.130699 | +108% |
8.0.27 | 100.000 | 0.139297 | +106% |
8.0.26 | 100.000 | 0.138699 | +101% |
8.0.25 | 100.000 | 0.132334 | +105% |
8.0.24 | 100.000 | 0.129460 | +108% |
8.0.23 | 100.000 | 0.126097 | 100% |
8.0.20 | 10.000 | 0.015674 | +109% |
8.0.20 | 100.000 | 0.131209 | +105% |
8.0.19 | 10.000 | 0.021859 | +107% |
8.0.19 | 100.000 | 0.137572 | +103% |
8.0.17 | 10.000 | 0.020365 | +103% |
8.0.17 | 100.000 | 0.136226 | 100% |
8.0.16 | 10.000 | 0.021192 | +113% |
8.0.16 | 100.000 | 0.137843 | 100% |
8.0.14 | 10.000 | 0.020622 | +101% |
8.0.14 | 100.000 | 0.158070 | +116% |
8.0.11 | 100.000 | 0.127864 | +104% |
8.0.10 | 100.000 | 0.139750 | +107% |
8.0.9 | 100.000 | 0.126005 | 100% |
8.0.8 | 100.000 | 0.127276 | 100% |
8.0.7 | 100.000 | 0.129201 | 100% |
8.0.3 | 100.000 | 0.157882 | +103% |
8.0.2 | 100.000 | 0.176340 | 100% |
8.0.0 | 100.000 | 0.127946 | 100% |
7.4.33 | 100.000 | 0.173620 | +113% |
7.4.32 | 100.000 | 0.130759 | +110% |
7.4.30 | 100.000 | 0.129478 | +107% |
7.4.28 | 100.000 | 0.138802 | +101% |
7.4.27 | 100.000 | 0.141883 | 100% |
7.4.24 | 100.000 | 0.131544 | 100% |
7.4.23 | 100.000 | 0.124788 | 100% |
7.4.22 | 100.000 | 0.125930 | +101% |
8.0.11 | 10.000 | 0.019554 | +104% |
8.0.10 | 10.000 | 0.019243 | 100% |
8.0.0 | 10.000 | 0.017648 | 100% |
7.4.29 | 100.000 | 0.140301 | +106% |
7.4.21 | 10.000 | 0.019137 | +104% |
7.4.21 | 100.000 | 0.127592 | +105% |
7.4.20 | 10.000 | 0.019692 | +101% |
7.4.20 | 100.000 | 0.136306 | +107% |
7.4.16 | 100.000 | 0.155626 | +102% |
7.4.15 | 100.000 | 0.179634 | +103% |
7.4.33 | 10.000 | 0.020627 | +114% |
7.4.32 | 10.000 | 0.016863 | +101% |
7.4.30 | 10.000 | 0.014675 | +108% |
7.4.29 | 10.000 | 0.021977 | +111% |
7.4.24 | 10.000 | 0.019421 | +105% |
7.4.23 | 10.000 | 0.019406 | +102% |
7.4.22 | 10.000 | 0.018472 | +110% |
7.4.13 | 100.000 | 0.130237 | +102% |
7.4.12 | 100.000 | 0.145662 | +108% |
7.4.11 | 100.000 | 0.131743 | +103% |
7.4.10 | 100.000 | 0.128235 | +104% |
8.0.2 | 10.000 | 0.027105 | +107% |
7.4.0 | 100.000 | 0.271275 | +102% |
8.0.30 | 10.000 | 0.024326 | +120% |
8.0.29 | 10.000 | 0.015206 | +113% |
8.0.28 | 10.000 | 0.016144 | +108% |
8.0.27 | 10.000 | 0.017097 | 100% |
8.0.26 | 10.000 | 0.018829 | +119% |
8.0.25 | 10.000 | 0.016191 | +105% |
8.0.24 | 10.000 | 0.017715 | +108% |
8.0.23 | 10.000 | 0.013660 | 100% |
8.0.9 | 10.000 | 0.018798 | +107% |
8.0.8 | 10.000 | 0.016320 | 100% |
8.0.7 | 10.000 | 0.019883 | 100% |
8.0.3 | 10.000 | 0.024108 | +106% |
7.4.28 | 10.000 | 0.021147 | +103% |
7.4.27 | 10.000 | 0.020146 | 100% |
7.4.16 | 10.000 | 0.023592 | 100% |
7.4.15 | 10.000 | 0.026374 | +108% |
7.4.13 | 10.000 | 0.017463 | 100% |
7.4.12 | 10.000 | 0.017319 | +111% |
7.4.11 | 10.000 | 0.019667 | +102% |
7.4.10 | 10.000 | 0.018236 | +117% |
7.4.7 | 10.000 | 0.018588 | +108% |
7.4.7 | 100.000 | 0.130745 | +104% |
7.4.6 | 10.000 | 0.017681 | +104% |
7.4.6 | 100.000 | 0.122830 | +104% |
7.4.5 | 10.000 | 0.018724 | +109% |
7.4.5 | 100.000 | 0.127392 | +108% |
7.4.4 | 10.000 | 0.017406 | 100% |
7.4.4 | 100.000 | 0.119466 | 100% |
7.4.3 | 10.000 | 0.019624 | +108% |
7.4.3 | 100.000 | 0.122617 | +109% |
7.4.1 | 100.000 | 0.122413 | +104% |
7.4.2 | 10.000 | 0.020726 | +109% |
7.4.2 | 100.000 | 0.123401 | 100% |
7.4.1 | 10.000 | 0.020657 | +101% |
7.4.0 | 10.000 | 0.027780 | 100% |
7.3.33 | 10.000 | 0.020194 | +111% |
7.3.31 | 10.000 | 0.018105 | 100% |
7.3.30 | 10.000 | 0.016911 | 100% |
7.3.29 | 10.000 | 0.019521 | +113% |
7.3.28 | 10.000 | 0.019971 | +102% |
7.3.27 | 10.000 | 0.023888 | 100% |
7.3.24 | 10.000 | 0.017838 | +103% |
7.3.23 | 10.000 | 0.017435 | 100% |
7.3.22 | 10.000 | 0.017460 | +104% |
7.3.19 | 10.000 | 0.018214 | 100% |
7.3.18 | 10.000 | 0.018945 | +107% |
7.3.17 | 10.000 | 0.021433 | +127% |
7.3.16 | 10.000 | 0.017451 | 100% |
7.3.15 | 10.000 | 0.017426 | 100% |
7.3.14 | 10.000 | 0.021816 | +108% |
7.3.13 | 10.000 | 0.019554 | +102% |
7.3.12 | 10.000 | 0.018295 | +103% |
7.3.11 | 10.000 | 0.024917 | +109% |
7.3.9 | 10.000 | 0.032029 | 100% |
7.3.8 | 10.000 | 0.030131 | 100% |
7.2.34 | 10.000 | 0.020229 | +108% |
7.2.33 | 10.000 | 0.017059 | 100% |
7.2.31 | 10.000 | 0.019334 | +109% |
7.2.30 | 10.000 | 0.018922 | 100% |
7.2.29 | 10.000 | 0.018983 | +106% |
7.2.28 | 10.000 | 0.019504 | +107% |
7.2.27 | 10.000 | 0.020132 | 100% |
7.2.26 | 10.000 | 0.021066 | +110% |
7.2.25 | 10.000 | 0.017365 | +106% |
7.2.24 | 10.000 | 0.024654 | +101% |
7.2.22 | 10.000 | 0.032485 | 100% |
7.2.21 | 10.000 | 0.031332 | 100% |
7.1.33 | 10.000 | 0.020247 | +105% |
7.1.32 | 10.000 | 0.033729 | +104% |
7.1.31 | 10.000 | 0.032487 | +106% |
7.1.0 | 10.000 | 0.028916 | 100% |
7.0.33 | 10.000 | 0.020362 | +104% |
7.0.7 | 10.000 | 0.025525 | 100% |
5.6.40 | 10.000 | 0.022719 | +103% |
5.6.22 | 10.000 | 0.038028 | 100% |
5.5.36 | 10.000 | 0.039546 | 100% |
5.4.45 | 10.000 | 0.038983 | 100% |
5.3.29 | 10.000 | 0.048104 | +106% |