StrReplaceTest

Replace a text with str_replace


<?php 

$text 
$this->getTextLarge();

$this->start($loop);

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

return 
$this->end();
PHP Loops Seconds Percent
8.0.30 10.000 0.012817 +156%
8.0.30 100.000 0.109807 +189%
8.0.9 100.000 0.108773 +187%
8.0.8 100.000 0.121956 +210%
7.3.13 100.000 0.113318 +195%
7.3.12 100.000 0.107324 +185%
7.3.11 100.000 0.159717 +275%
7.2.34 100.000 0.112172 +193%
7.2.33 100.000 0.110288 +190%
7.2.31 100.000 0.111477 +192%
7.2.30 100.000 0.110113 +190%
7.2.29 100.000 0.109563 +189%
7.2.28 100.000 0.107163 +185%
7.2.27 100.000 0.110673 +191%
7.2.26 100.000 0.111914 +193%
7.2.25 100.000 0.104776 +181%
7.2.24 100.000 0.158726 +273%
7.2.22 100.000 0.205707 +354%
7.2.21 100.000 0.203741 +351%
7.1.33 100.000 0.113391 +195%
7.1.32 100.000 0.214367 +369%
7.1.31 100.000 0.207255 +357%
7.1.0 100.000 0.441542 +761%
7.0.33 100.000 0.118197 +204%
7.0.7 100.000 0.417670 +720%
5.6.40 100.000 0.058046 100%
5.6.22 100.000 0.243974 +420%
5.5.36 100.000 0.259998 +448%
5.4.45 100.000 0.272093 +469%
5.3.29 100.000 0.431628 +744%
8.0.29 10.000 0.011424 +139%
8.0.29 100.000 0.100080 +172%
8.0.28 100.000 0.104130 +179%
8.0.27 100.000 0.110327 +190%
8.0.26 100.000 0.111526 +192%
8.0.25 100.000 0.107543 +185%
8.0.24 100.000 0.104667 +180%
8.0.23 100.000 0.101350 +175%
8.0.20 100.000 0.100743 +174%
8.0.19 100.000 0.109188 +188%
8.0.17 100.000 0.111426 +192%
8.0.16 100.000 0.113215 +195%
8.0.14 100.000 0.112522 +194%
8.0.11 10.000 0.017256 +211%
8.0.11 100.000 0.109197 +188%
8.0.10 10.000 0.017519 +214%
8.0.10 100.000 0.109476 +189%
7.3.15 100.000 0.107951 +186%
8.0.28 10.000 0.012536 +153%
8.0.27 10.000 0.013529 +165%
8.0.26 10.000 0.014942 +182%
8.0.25 10.000 0.012940 +158%
8.0.24 10.000 0.013353 +163%
8.0.23 10.000 0.012904 +157%
8.0.20 10.000 0.012093 +148%
8.0.19 10.000 0.017472 +213%
8.0.17 10.000 0.017809 +217%
8.0.16 10.000 0.016258 +198%
8.0.14 10.000 0.018141 +221%
7.3.14 100.000 0.112270 +193%
8.0.9 10.000 0.015496 +189%
8.0.7 100.000 0.113705 +196%
8.0.8 10.000 0.020160 +246%
8.0.3 100.000 0.134497 +232%
8.0.2 100.000 0.159844 +275%
8.0.0 100.000 0.111189 +192%
7.4.33 100.000 0.107203 +185%
8.0.7 10.000 0.018156 +222%
7.4.32 100.000 0.105031 +181%
7.4.30 100.000 0.104564 +180%
7.4.29 100.000 0.109046 +188%
7.4.27 100.000 0.112249 +193%
8.0.3 10.000 0.020780 +254%
7.4.28 100.000 0.108225 +186%
7.4.24 100.000 0.108064 +186%
7.4.7 100.000 0.113318 +195%
7.4.6 100.000 0.108714 +187%
7.4.5 100.000 0.110875 +191%
7.4.4 100.000 0.104981 +181%
8.0.2 10.000 0.020642 +252%
8.0.0 10.000 0.016773 +205%
7.4.3 100.000 0.106236 +183%
7.4.33 10.000 0.012834 +157%
7.4.32 10.000 0.014333 +175%
7.4.30 10.000 0.012880 +157%
7.4.29 10.000 0.018403 +225%
7.3.17 100.000 0.105156 +181%
7.3.16 100.000 0.107194 +185%
7.4.28 10.000 0.016210 +198%
7.4.23 100.000 0.118540 +204%
7.4.21 100.000 0.109180 +188%
7.4.20 100.000 0.111639 +192%
7.4.24 10.000 0.017577 +214%
7.4.16 100.000 0.134280 +231%
7.4.15 10.000 0.022369 +273%
7.4.15 100.000 0.155655 +268%
7.4.13 100.000 0.112263 +193%
7.4.27 10.000 0.017555 +214%
7.4.23 10.000 0.016301 +199%
7.4.22 10.000 0.016293 +199%
7.4.22 100.000 0.109274 +188%
7.4.21 10.000 0.019746 +241%
7.4.20 10.000 0.018053 +220%
7.4.16 10.000 0.020532 +251%
7.4.13 10.000 0.015595 +190%
7.4.12 10.000 0.013846 +169%
7.4.12 100.000 0.114470 +197%
7.4.11 100.000 0.111299 +192%
7.4.11 10.000 0.017607 +215%
7.4.10 10.000 0.014065 +172%
7.4.10 100.000 0.114583 +197%
7.4.7 10.000 0.016840 +206%
7.4.6 10.000 0.016868 +206%
7.4.5 10.000 0.017923 +219%
7.4.4 10.000 0.015629 +191%
7.4.2 10.000 0.017861 +218%
7.4.2 100.000 0.112617 +194%
7.4.3 10.000 0.014347 +175%
7.4.1 10.000 0.017339 +212%
7.4.1 100.000 0.107793 +186%
7.4.0 100.000 0.180565 +311%
7.3.33 100.000 0.107870 +186%
7.3.31 100.000 0.108788 +187%
7.3.18 100.000 0.110690 +191%
7.3.33 10.000 0.013552 +165%
7.3.30 100.000 0.109196 +188%
7.4.0 10.000 0.019623 +239%
7.3.31 10.000 0.016904 +206%
7.3.29 10.000 0.016529 +202%
7.3.29 100.000 0.110520 +190%
7.3.28 10.000 0.016887 +206%
7.3.28 100.000 0.110520 +190%
7.3.27 10.000 0.021082 +257%
7.3.27 100.000 0.136551 +235%
7.3.30 10.000 0.016636 +203%
7.3.24 10.000 0.015616 +191%
7.3.24 100.000 0.112310 +193%
7.3.23 10.000 0.016177 +197%
7.3.23 100.000 0.116295 +200%
7.3.22 10.000 0.016954 +207%
7.3.22 100.000 0.111253 +192%
7.3.19 10.000 0.016864 +206%
7.3.19 100.000 0.114518 +197%
7.3.18 10.000 0.016995 +207%
7.3.17 10.000 0.015734 +192%
7.3.9 10.000 0.021365 +261%
7.3.9 100.000 0.206405 +356%
7.3.8 10.000 0.020879 +255%
7.3.8 100.000 0.205394 +354%
7.3.16 10.000 0.015655 +191%
7.3.15 10.000 0.017761 +217%
7.3.14 10.000 0.020074 +245%
7.3.13 10.000 0.019230 +235%
7.3.12 10.000 0.017443 +213%
7.3.11 10.000 0.017688 +216%
7.2.34 10.000 0.014894 +182%
7.2.33 10.000 0.016013 +195%
7.2.31 10.000 0.017381 +212%
7.2.30 10.000 0.016265 +198%
7.2.29 10.000 0.017117 +209%
7.2.28 10.000 0.016496 +201%
7.2.27 10.000 0.017938 +219%
7.2.26 10.000 0.018557 +226%
7.2.25 10.000 0.016080 +196%
7.2.24 10.000 0.016835 +205%
7.2.22 10.000 0.021534 +263%
7.2.21 10.000 0.020416 +249%
7.1.33 10.000 0.015713 +192%
7.1.32 10.000 0.022499 +275%
7.1.31 10.000 0.020889 +255%
7.1.0 10.000 0.044992 +549%
7.0.33 10.000 0.015753 +192%
7.0.7 10.000 0.042437 +518%
5.6.40 10.000 0.008195 100%
5.6.22 10.000 0.025903 +316%
5.5.36 10.000 0.027150 +331%
5.4.45 10.000 0.028442 +347%
5.3.29 10.000 0.045968 +561%