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.012729 +153%
8.0.30 100.000 0.110466 +189%
8.0.9 100.000 0.108773 +186%
8.0.8 100.000 0.121956 +209%
7.3.13 100.000 0.113318 +194%
7.3.12 100.000 0.107324 +184%
7.3.11 100.000 0.159717 +273%
7.2.34 100.000 0.112363 +192%
7.2.33 100.000 0.110288 +189%
7.2.31 100.000 0.111477 +191%
7.2.30 100.000 0.110113 +188%
7.2.29 100.000 0.109563 +187%
7.2.28 100.000 0.107163 +183%
7.2.27 100.000 0.110673 +189%
7.2.26 100.000 0.111914 +192%
7.2.25 100.000 0.104776 +179%
7.2.24 100.000 0.158726 +272%
7.2.22 100.000 0.205707 +352%
7.2.21 100.000 0.203741 +349%
7.1.33 100.000 0.113708 +195%
7.1.32 100.000 0.214367 +367%
7.1.31 100.000 0.207255 +355%
7.1.0 100.000 0.441542 +756%
7.0.33 100.000 0.118666 +203%
7.0.7 100.000 0.417670 +715%
5.6.40 100.000 0.058436 100%
5.6.22 100.000 0.243974 +418%
5.5.36 100.000 0.259998 +445%
5.4.45 100.000 0.272093 +466%
5.3.29 100.000 0.431628 +739%
8.0.29 10.000 0.011424 +137%
8.0.29 100.000 0.100080 +171%
8.0.28 100.000 0.104130 +178%
8.0.27 100.000 0.110327 +189%
8.0.26 100.000 0.111526 +191%
8.0.25 100.000 0.107543 +184%
8.0.24 100.000 0.104667 +179%
8.0.23 100.000 0.101350 +173%
8.0.20 100.000 0.100743 +172%
8.0.19 100.000 0.109188 +187%
8.0.17 100.000 0.111426 +191%
8.0.16 100.000 0.113215 +194%
8.0.14 100.000 0.112522 +193%
8.0.11 10.000 0.017256 +207%
8.0.11 100.000 0.109197 +187%
8.0.10 10.000 0.017519 +210%
8.0.10 100.000 0.109476 +187%
7.3.15 100.000 0.107951 +185%
8.0.28 10.000 0.012536 +150%
8.0.27 10.000 0.013529 +162%
8.0.26 10.000 0.014942 +179%
8.0.25 10.000 0.012940 +155%
8.0.24 10.000 0.013353 +160%
8.0.23 10.000 0.012904 +155%
8.0.20 10.000 0.012093 +145%
8.0.19 10.000 0.017472 +210%
8.0.17 10.000 0.017809 +214%
8.0.16 10.000 0.016258 +195%
8.0.14 10.000 0.018141 +218%
7.3.14 100.000 0.112270 +192%
8.0.9 10.000 0.015496 +186%
8.0.7 100.000 0.113705 +195%
8.0.8 10.000 0.020160 +242%
8.0.3 100.000 0.134497 +230%
8.0.2 100.000 0.159844 +274%
8.0.0 100.000 0.111189 +190%
7.4.33 100.000 0.107325 +184%
8.0.7 10.000 0.018156 +218%
7.4.32 100.000 0.105031 +180%
7.4.30 100.000 0.104564 +179%
7.4.29 100.000 0.109046 +187%
7.4.27 100.000 0.112249 +192%
8.0.3 10.000 0.020780 +249%
7.4.28 100.000 0.108225 +185%
7.4.24 100.000 0.108064 +185%
7.4.7 100.000 0.113318 +194%
7.4.6 100.000 0.108714 +186%
7.4.5 100.000 0.110875 +190%
7.4.4 100.000 0.104981 +180%
8.0.2 10.000 0.020642 +248%
8.0.0 10.000 0.016773 +201%
7.4.3 100.000 0.106236 +182%
7.4.33 10.000 0.012524 +150%
7.4.32 10.000 0.014333 +172%
7.4.30 10.000 0.012880 +154%
7.4.29 10.000 0.018403 +221%
7.3.17 100.000 0.105156 +180%
7.3.16 100.000 0.107194 +183%
7.4.28 10.000 0.016210 +194%
7.4.23 100.000 0.118540 +203%
7.4.21 100.000 0.109180 +187%
7.4.20 100.000 0.111639 +191%
7.4.24 10.000 0.017577 +211%
7.4.16 100.000 0.134280 +230%
7.4.15 10.000 0.022369 +268%
7.4.15 100.000 0.155655 +266%
7.4.13 100.000 0.112263 +192%
7.4.27 10.000 0.017555 +211%
7.4.23 10.000 0.016301 +195%
7.4.22 10.000 0.016293 +195%
7.4.22 100.000 0.109274 +187%
7.4.21 10.000 0.019746 +237%
7.4.20 10.000 0.018053 +217%
7.4.16 10.000 0.020532 +246%
7.4.13 10.000 0.015595 +187%
7.4.12 10.000 0.013846 +166%
7.4.12 100.000 0.114470 +196%
7.4.11 100.000 0.111299 +190%
7.4.11 10.000 0.017607 +211%
7.4.10 10.000 0.014065 +169%
7.4.10 100.000 0.114583 +196%
7.4.7 10.000 0.016840 +202%
7.4.6 10.000 0.016868 +202%
7.4.5 10.000 0.017923 +215%
7.4.4 10.000 0.015629 +187%
7.4.2 10.000 0.017861 +214%
7.4.2 100.000 0.112617 +193%
7.4.3 10.000 0.014347 +172%
7.4.1 10.000 0.017339 +208%
7.4.1 100.000 0.107793 +184%
7.4.0 100.000 0.180565 +309%
7.3.33 100.000 0.107915 +185%
7.3.31 100.000 0.108788 +186%
7.3.18 100.000 0.110690 +189%
7.3.33 10.000 0.013492 +162%
7.3.30 100.000 0.109196 +187%
7.4.0 10.000 0.019623 +235%
7.3.31 10.000 0.016904 +203%
7.3.29 10.000 0.016529 +198%
7.3.29 100.000 0.110520 +189%
7.3.28 10.000 0.016887 +203%
7.3.28 100.000 0.110520 +189%
7.3.27 10.000 0.021082 +253%
7.3.27 100.000 0.136551 +234%
7.3.30 10.000 0.016636 +200%
7.3.24 10.000 0.015616 +187%
7.3.24 100.000 0.112310 +192%
7.3.23 10.000 0.016177 +194%
7.3.23 100.000 0.116295 +199%
7.3.22 10.000 0.016954 +203%
7.3.22 100.000 0.111253 +190%
7.3.19 10.000 0.016864 +202%
7.3.19 100.000 0.114518 +196%
7.3.18 10.000 0.016995 +204%
7.3.17 10.000 0.015734 +189%
7.3.9 10.000 0.021365 +256%
7.3.9 100.000 0.206405 +353%
7.3.8 10.000 0.020879 +250%
7.3.8 100.000 0.205394 +351%
7.3.16 10.000 0.015655 +188%
7.3.15 10.000 0.017761 +213%
7.3.14 10.000 0.020074 +241%
7.3.13 10.000 0.019230 +231%
7.3.12 10.000 0.017443 +209%
7.3.11 10.000 0.017688 +212%
7.2.34 10.000 0.015067 +181%
7.2.33 10.000 0.016013 +192%
7.2.31 10.000 0.017381 +208%
7.2.30 10.000 0.016265 +195%
7.2.29 10.000 0.017117 +205%
7.2.28 10.000 0.016496 +198%
7.2.27 10.000 0.017938 +215%
7.2.26 10.000 0.018557 +223%
7.2.25 10.000 0.016080 +193%
7.2.24 10.000 0.016835 +202%
7.2.22 10.000 0.021534 +258%
7.2.21 10.000 0.020416 +245%
7.1.33 10.000 0.015805 +190%
7.1.32 10.000 0.022499 +270%
7.1.31 10.000 0.020889 +251%
7.1.0 10.000 0.044992 +540%
7.0.33 10.000 0.015819 +190%
7.0.7 10.000 0.042437 +509%
5.6.40 10.000 0.008339 100%
5.6.22 10.000 0.025903 +311%
5.5.36 10.000 0.027150 +326%
5.4.45 10.000 0.028442 +341%
5.3.29 10.000 0.045968 +551%