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.3.13 | 100.000 | 0.127637 | +217% |
8.3.10 | 100.000 | 0.122604 | +209% |
8.3.9 | 100.000 | 0.117591 | +200% |
7.3.33 | 100.000 | 0.109540 | +186% |
7.3.31 | 100.000 | 0.108788 | +185% |
7.3.30 | 100.000 | 0.109196 | +186% |
7.3.29 | 100.000 | 0.110520 | +188% |
7.3.28 | 100.000 | 0.110520 | +188% |
7.3.27 | 100.000 | 0.136551 | +232% |
7.3.24 | 100.000 | 0.112310 | +191% |
7.3.23 | 100.000 | 0.116295 | +198% |
7.3.22 | 100.000 | 0.111253 | +189% |
7.3.19 | 100.000 | 0.114518 | +195% |
7.3.18 | 100.000 | 0.110690 | +188% |
7.3.17 | 100.000 | 0.105156 | +179% |
7.3.16 | 100.000 | 0.107194 | +182% |
7.3.15 | 100.000 | 0.107951 | +184% |
7.3.14 | 100.000 | 0.112270 | +191% |
7.3.13 | 100.000 | 0.113318 | +193% |
7.3.12 | 100.000 | 0.107324 | +183% |
7.3.11 | 100.000 | 0.159717 | +272% |
7.3.9 | 100.000 | 0.206405 | +351% |
7.3.8 | 100.000 | 0.205394 | +350% |
7.2.29 | 100.000 | 0.109563 | +186% |
8.3.13 | 10.000 | 0.014704 | +179% |
7.2.34 | 100.000 | 0.113178 | +193% |
7.2.33 | 100.000 | 0.110288 | +188% |
7.2.31 | 100.000 | 0.111477 | +190% |
7.2.30 | 100.000 | 0.110113 | +187% |
8.3.10 | 10.000 | 0.015598 | +190% |
7.2.28 | 100.000 | 0.107163 | +182% |
7.2.27 | 100.000 | 0.110673 | +188% |
7.2.26 | 100.000 | 0.111914 | +190% |
7.2.25 | 100.000 | 0.104776 | +178% |
7.2.24 | 100.000 | 0.158726 | +270% |
7.2.22 | 100.000 | 0.205707 | +350% |
7.2.21 | 100.000 | 0.203741 | +347% |
7.1.33 | 100.000 | 0.114062 | +194% |
7.1.32 | 100.000 | 0.214367 | +365% |
7.1.31 | 100.000 | 0.207255 | +353% |
7.1.0 | 100.000 | 0.441542 | +751% |
7.0.33 | 100.000 | 0.118666 | +202% |
7.0.7 | 100.000 | 0.417670 | +711% |
5.6.40 | 100.000 | 0.058761 | 100% |
5.6.22 | 100.000 | 0.243974 | +415% |
5.5.36 | 100.000 | 0.259998 | +442% |
5.4.45 | 100.000 | 0.272093 | +463% |
5.3.29 | 100.000 | 0.431628 | +735% |
8.3.9 | 10.000 | 0.015126 | +184% |
8.0.30 | 100.000 | 0.113751 | +194% |
8.0.29 | 100.000 | 0.100080 | +170% |
8.0.28 | 100.000 | 0.104130 | +177% |
8.0.27 | 100.000 | 0.110327 | +188% |
8.0.26 | 100.000 | 0.111526 | +190% |
8.0.25 | 100.000 | 0.107543 | +183% |
8.0.24 | 100.000 | 0.104667 | +178% |
8.0.23 | 100.000 | 0.101350 | +172% |
8.0.20 | 10.000 | 0.012093 | +147% |
8.0.20 | 100.000 | 0.100743 | +171% |
8.0.19 | 10.000 | 0.017472 | +213% |
8.0.19 | 100.000 | 0.109188 | +186% |
8.0.17 | 10.000 | 0.017809 | +217% |
8.0.17 | 100.000 | 0.111426 | +190% |
8.0.16 | 10.000 | 0.016258 | +198% |
8.0.16 | 100.000 | 0.113215 | +193% |
8.0.14 | 10.000 | 0.018141 | +221% |
8.0.14 | 100.000 | 0.112522 | +191% |
8.0.11 | 100.000 | 0.109197 | +186% |
8.0.10 | 100.000 | 0.109476 | +186% |
8.0.9 | 100.000 | 0.108773 | +185% |
8.0.8 | 100.000 | 0.121956 | +208% |
8.0.7 | 100.000 | 0.113705 | +194% |
8.0.3 | 100.000 | 0.134497 | +229% |
8.0.2 | 100.000 | 0.159844 | +272% |
8.0.0 | 100.000 | 0.111189 | +189% |
7.4.33 | 100.000 | 0.109958 | +187% |
7.4.32 | 100.000 | 0.105031 | +179% |
7.4.30 | 100.000 | 0.104564 | +178% |
7.4.28 | 100.000 | 0.108225 | +184% |
7.4.27 | 100.000 | 0.112249 | +191% |
7.4.24 | 100.000 | 0.108064 | +184% |
7.4.23 | 100.000 | 0.118540 | +202% |
7.4.22 | 100.000 | 0.109274 | +186% |
8.0.11 | 10.000 | 0.017256 | +210% |
8.0.10 | 10.000 | 0.017519 | +213% |
8.0.0 | 10.000 | 0.016773 | +204% |
7.4.29 | 100.000 | 0.109046 | +186% |
7.4.21 | 10.000 | 0.019746 | +240% |
7.4.21 | 100.000 | 0.109180 | +186% |
7.4.20 | 10.000 | 0.018053 | +220% |
7.4.20 | 100.000 | 0.111639 | +190% |
7.4.16 | 100.000 | 0.134280 | +229% |
7.4.15 | 100.000 | 0.155655 | +265% |
7.4.33 | 10.000 | 0.013240 | +161% |
7.4.32 | 10.000 | 0.014333 | +174% |
7.4.30 | 10.000 | 0.012880 | +157% |
7.4.29 | 10.000 | 0.018403 | +224% |
7.4.24 | 10.000 | 0.017577 | +214% |
7.4.23 | 10.000 | 0.016301 | +198% |
7.4.22 | 10.000 | 0.016293 | +198% |
7.4.13 | 100.000 | 0.112263 | +191% |
7.4.12 | 100.000 | 0.114470 | +195% |
7.4.11 | 100.000 | 0.111299 | +189% |
7.4.10 | 100.000 | 0.114583 | +195% |
8.0.2 | 10.000 | 0.020642 | +251% |
7.4.0 | 100.000 | 0.180565 | +307% |
8.0.30 | 10.000 | 0.013488 | +164% |
8.0.29 | 10.000 | 0.011424 | +139% |
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 | +157% |
8.0.24 | 10.000 | 0.013353 | +162% |
8.0.23 | 10.000 | 0.012904 | +157% |
8.0.9 | 10.000 | 0.015496 | +189% |
8.0.8 | 10.000 | 0.020160 | +245% |
8.0.7 | 10.000 | 0.018156 | +221% |
8.0.3 | 10.000 | 0.020780 | +253% |
7.4.28 | 10.000 | 0.016210 | +197% |
7.4.27 | 10.000 | 0.017555 | +214% |
7.4.16 | 10.000 | 0.020532 | +250% |
7.4.15 | 10.000 | 0.022369 | +272% |
7.4.13 | 10.000 | 0.015595 | +190% |
7.4.12 | 10.000 | 0.013846 | +168% |
7.4.11 | 10.000 | 0.017607 | +214% |
7.4.10 | 10.000 | 0.014065 | +171% |
7.4.7 | 10.000 | 0.016840 | +205% |
7.4.7 | 100.000 | 0.113318 | +193% |
7.4.6 | 10.000 | 0.016868 | +205% |
7.4.6 | 100.000 | 0.108714 | +185% |
7.4.5 | 10.000 | 0.017923 | +218% |
7.4.5 | 100.000 | 0.110875 | +189% |
7.4.4 | 10.000 | 0.015629 | +190% |
7.4.4 | 100.000 | 0.104981 | +179% |
7.4.3 | 10.000 | 0.014347 | +175% |
7.4.3 | 100.000 | 0.106236 | +181% |
7.4.1 | 100.000 | 0.107793 | +183% |
7.4.2 | 10.000 | 0.017861 | +217% |
7.4.2 | 100.000 | 0.112617 | +192% |
7.4.1 | 10.000 | 0.017339 | +211% |
7.4.0 | 10.000 | 0.019623 | +239% |
7.3.33 | 10.000 | 0.013688 | +167% |
7.3.31 | 10.000 | 0.016904 | +206% |
7.3.30 | 10.000 | 0.016636 | +202% |
7.3.29 | 10.000 | 0.016529 | +201% |
7.3.28 | 10.000 | 0.016887 | +205% |
7.3.27 | 10.000 | 0.021082 | +256% |
7.3.24 | 10.000 | 0.015616 | +190% |
7.3.23 | 10.000 | 0.016177 | +197% |
7.3.22 | 10.000 | 0.016954 | +206% |
7.3.19 | 10.000 | 0.016864 | +205% |
7.3.18 | 10.000 | 0.016995 | +207% |
7.3.17 | 10.000 | 0.015734 | +191% |
7.3.16 | 10.000 | 0.015655 | +190% |
7.3.15 | 10.000 | 0.017761 | +216% |
7.3.14 | 10.000 | 0.020074 | +244% |
7.3.13 | 10.000 | 0.019230 | +234% |
7.3.12 | 10.000 | 0.017443 | +212% |
7.3.11 | 10.000 | 0.017688 | +215% |
7.3.9 | 10.000 | 0.021365 | +260% |
7.3.8 | 10.000 | 0.020879 | +254% |
7.2.34 | 10.000 | 0.014831 | +180% |
7.2.33 | 10.000 | 0.016013 | +195% |
7.2.31 | 10.000 | 0.017381 | +211% |
7.2.30 | 10.000 | 0.016265 | +198% |
7.2.29 | 10.000 | 0.017117 | +208% |
7.2.28 | 10.000 | 0.016496 | +201% |
7.2.27 | 10.000 | 0.017938 | +218% |
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 | +262% |
7.2.21 | 10.000 | 0.020416 | +248% |
7.1.33 | 10.000 | 0.015663 | +191% |
7.1.32 | 10.000 | 0.022499 | +274% |
7.1.31 | 10.000 | 0.020889 | +254% |
7.1.0 | 10.000 | 0.044992 | +547% |
7.0.33 | 10.000 | 0.015697 | +191% |
7.0.7 | 10.000 | 0.042437 | +516% |
5.6.40 | 10.000 | 0.008220 | 100% |
5.6.22 | 10.000 | 0.025903 | +315% |
5.5.36 | 10.000 | 0.027150 | +330% |
5.4.45 | 10.000 | 0.028442 | +346% |
5.3.29 | 10.000 | 0.045968 | +559% |