StrIReplaceTest

Replace a text with str_ireplace (case insensitive)


<?php 

$text 
$this->getTextLarge();

$this->start($loop);

for (
$i 0$i $this->loop; ++$i) {
    
$value str_ireplace('lorem ipsum''Ipsum Lorem'$text);
}

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 10.000 0.020040 +129%
8.0.30 100.000 0.172011 +116%
8.0.9 100.000 0.161717 +109%
8.0.8 100.000 0.164444 +111%
7.3.13 100.000 0.378077 +254%
7.3.12 100.000 0.339834 +228%
7.3.11 100.000 0.404408 +272%
7.2.34 100.000 0.352886 +237%
7.2.33 100.000 0.400721 +269%
7.2.31 100.000 0.391377 +263%
7.2.30 100.000 0.384431 +258%
7.2.29 100.000 0.371808 +250%
7.2.28 100.000 0.299051 +201%
7.2.27 100.000 0.315376 +212%
7.2.26 100.000 0.300777 +202%
7.2.25 100.000 0.341221 +229%
7.2.24 100.000 0.399165 +268%
7.2.22 100.000 0.490970 +330%
7.2.21 100.000 0.523295 +352%
7.1.33 100.000 0.347528 +234%
7.1.32 100.000 0.507929 +341%
7.1.31 100.000 0.468124 +315%
7.1.0 100.000 1.963902 +1320%
7.0.33 100.000 0.353073 +237%
7.0.7 100.000 1.838893 +1236%
5.6.40 100.000 0.283836 +191%
5.6.22 100.000 1.810759 +1217%
5.5.36 100.000 1.907814 +1283%
5.4.45 100.000 1.829245 +1230%
5.3.29 100.000 2.045671 +1375%
8.0.29 10.000 0.015543 100%
8.0.29 100.000 0.148756 100%
8.0.28 100.000 0.151660 +102%
8.0.27 100.000 0.161930 +109%
8.0.26 100.000 0.162827 +109%
8.0.25 100.000 0.160888 +108%
8.0.24 100.000 0.152023 +102%
8.0.23 100.000 0.154821 +104%
8.0.20 100.000 0.152091 +102%
8.0.19 100.000 0.155717 +105%
8.0.17 100.000 0.164903 +111%
8.0.16 100.000 0.163333 +110%
8.0.14 100.000 0.172365 +116%
8.0.11 10.000 0.022881 +147%
8.0.11 100.000 0.157449 +106%
8.0.10 10.000 0.022839 +147%
8.0.10 100.000 0.158719 +107%
7.3.15 100.000 0.370906 +249%
8.0.28 10.000 0.017010 +109%
8.0.27 10.000 0.018474 +119%
8.0.26 10.000 0.019541 +126%
8.0.25 10.000 0.019528 +126%
8.0.24 10.000 0.019686 +127%
8.0.23 10.000 0.022088 +142%
8.0.20 10.000 0.017984 +116%
8.0.19 10.000 0.023748 +153%
8.0.17 10.000 0.023806 +153%
8.0.16 10.000 0.023439 +151%
8.0.14 10.000 0.023220 +149%
7.3.14 100.000 0.389436 +262%
8.0.9 10.000 0.022416 +144%
8.0.7 100.000 0.185617 +125%
8.0.8 10.000 0.023893 +154%
8.0.3 100.000 0.196395 +132%
8.0.2 100.000 0.231208 +155%
8.0.0 100.000 0.163020 +110%
7.4.33 100.000 0.307418 +207%
8.0.7 10.000 0.025789 +166%
7.4.32 100.000 0.296731 +199%
7.4.30 100.000 0.296848 +200%
7.4.29 100.000 0.297132 +200%
7.4.27 100.000 0.319716 +215%
8.0.3 10.000 0.028141 +181%
7.4.28 100.000 0.318077 +214%
7.4.24 100.000 0.380434 +256%
7.4.7 100.000 0.404837 +272%
7.4.6 100.000 0.299543 +201%
7.4.5 100.000 0.303801 +204%
7.4.4 100.000 0.298715 +201%
8.0.2 10.000 0.033107 +213%
8.0.0 10.000 0.022400 +144%
7.4.3 100.000 0.369907 +249%
7.4.33 10.000 0.033257 +214%
7.4.32 10.000 0.033525 +216%
7.4.30 10.000 0.032019 +206%
7.4.29 10.000 0.040057 +258%
7.3.17 100.000 0.300677 +202%
7.3.16 100.000 0.305103 +205%
7.4.28 10.000 0.037608 +242%
7.4.23 100.000 0.379872 +255%
7.4.21 100.000 0.385614 +259%
7.4.20 100.000 0.305001 +205%
7.4.24 10.000 0.045511 +293%
7.4.16 100.000 0.379309 +255%
7.4.15 10.000 0.068122 +438%
7.4.15 100.000 0.554792 +373%
7.4.13 100.000 0.315736 +212%
7.4.27 10.000 0.037833 +243%
7.4.23 10.000 0.044359 +285%
7.4.22 10.000 0.037237 +240%
7.4.22 100.000 0.304040 +204%
7.4.21 10.000 0.046875 +302%
7.4.20 10.000 0.039160 +252%
7.4.16 10.000 0.048541 +312%
7.4.13 10.000 0.038081 +245%
7.4.12 10.000 0.037222 +239%
7.4.12 100.000 0.356923 +240%
7.4.11 100.000 0.407618 +274%
7.4.11 10.000 0.045587 +293%
7.4.10 10.000 0.038653 +249%
7.4.10 100.000 0.331637 +223%
7.4.7 10.000 0.048375 +311%
7.4.6 10.000 0.038182 +246%
7.4.5 10.000 0.038767 +249%
7.4.4 10.000 0.038316 +247%
7.4.2 10.000 0.049302 +317%
7.4.2 100.000 0.393985 +265%
7.4.3 10.000 0.047734 +307%
7.4.1 10.000 0.042165 +271%
7.4.1 100.000 0.303509 +204%
7.4.0 100.000 0.439547 +295%
7.3.33 100.000 0.304269 +205%
7.3.31 100.000 0.299237 +201%
7.3.18 100.000 0.379022 +255%
7.3.33 10.000 0.034222 +220%
7.3.30 100.000 0.300719 +202%
7.4.0 10.000 0.043931 +283%
7.3.31 10.000 0.036848 +237%
7.3.29 10.000 0.040222 +259%
7.3.29 100.000 0.307804 +207%
7.3.28 10.000 0.048292 +311%
7.3.28 100.000 0.383491 +258%
7.3.27 10.000 0.057941 +373%
7.3.27 100.000 0.485760 +327%
7.3.30 10.000 0.036696 +236%
7.3.24 10.000 0.045681 +294%
7.3.24 100.000 0.400850 +269%
7.3.23 10.000 0.039437 +254%
7.3.23 100.000 0.341428 +230%
7.3.22 10.000 0.037483 +241%
7.3.22 100.000 0.341216 +229%
7.3.19 10.000 0.046362 +298%
7.3.19 100.000 0.401447 +270%
7.3.18 10.000 0.045633 +294%
7.3.17 10.000 0.037350 +240%
7.3.9 10.000 0.050844 +327%
7.3.9 100.000 0.559601 +376%
7.3.8 10.000 0.045795 +295%
7.3.8 100.000 0.452514 +304%
7.3.16 10.000 0.039920 +257%
7.3.15 10.000 0.041561 +267%
7.3.14 10.000 0.047751 +307%
7.3.13 10.000 0.046102 +297%
7.3.12 10.000 0.039935 +257%
7.3.11 10.000 0.041210 +265%
7.2.34 10.000 0.040402 +260%
7.2.33 10.000 0.045106 +290%
7.2.31 10.000 0.046866 +302%
7.2.30 10.000 0.045146 +290%
7.2.29 10.000 0.043911 +283%
7.2.28 10.000 0.036339 +234%
7.2.27 10.000 0.040217 +259%
7.2.26 10.000 0.038621 +248%
7.2.25 10.000 0.041515 +267%
7.2.24 10.000 0.040664 +262%
7.2.22 10.000 0.045562 +293%
7.2.21 10.000 0.050658 +326%
7.1.33 10.000 0.040323 +259%
7.1.32 10.000 0.046326 +298%
7.1.31 10.000 0.046152 +297%
7.1.0 10.000 0.199870 +1286%
7.0.33 10.000 0.040594 +261%
7.0.7 10.000 0.187316 +1205%
5.6.40 10.000 0.033688 +217%
5.6.22 10.000 0.186414 +1199%
5.5.36 10.000 0.196203 +1262%
5.4.45 10.000 0.188437 +1212%
5.3.29 10.000 0.212034 +1364%