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.4.4 | 100.000 | 0.112889 | +191% |
8.3.9 | 100.000 | 0.117591 | +199% |
7.4.1 | 100.000 | 0.107793 | +183% |
7.4.0 | 100.000 | 0.180565 | +306% |
7.3.33 | 100.000 | 0.110562 | +187% |
7.3.31 | 100.000 | 0.108788 | +184% |
7.3.30 | 100.000 | 0.109196 | +185% |
7.3.29 | 100.000 | 0.110520 | +187% |
7.3.28 | 100.000 | 0.110520 | +187% |
7.3.27 | 100.000 | 0.136551 | +231% |
7.3.24 | 100.000 | 0.112310 | +190% |
7.3.23 | 100.000 | 0.116295 | +197% |
7.3.22 | 100.000 | 0.111253 | +188% |
7.3.19 | 100.000 | 0.114518 | +194% |
7.3.18 | 100.000 | 0.110690 | +187% |
7.3.17 | 100.000 | 0.105156 | +178% |
7.3.16 | 100.000 | 0.107194 | +182% |
7.3.15 | 100.000 | 0.107951 | +183% |
7.3.14 | 100.000 | 0.112270 | +190% |
7.3.13 | 100.000 | 0.113318 | +192% |
7.3.12 | 100.000 | 0.107324 | +182% |
7.3.11 | 100.000 | 0.159717 | +271% |
7.3.9 | 100.000 | 0.206405 | +350% |
7.3.8 | 100.000 | 0.205394 | +348% |
7.2.34 | 100.000 | 0.113719 | +193% |
7.2.33 | 100.000 | 0.110288 | +187% |
7.2.31 | 100.000 | 0.111477 | +189% |
7.2.30 | 100.000 | 0.110113 | +187% |
7.2.29 | 100.000 | 0.109563 | +186% |
7.2.28 | 100.000 | 0.107163 | +182% |
7.2.27 | 100.000 | 0.110673 | +187% |
7.2.26 | 100.000 | 0.111914 | +190% |
7.2.25 | 100.000 | 0.104776 | +177% |
7.2.24 | 100.000 | 0.158726 | +269% |
7.2.22 | 100.000 | 0.205707 | +348% |
7.2.21 | 100.000 | 0.203741 | +345% |
7.1.33 | 100.000 | 0.114502 | +194% |
7.1.32 | 100.000 | 0.214367 | +363% |
7.1.31 | 100.000 | 0.207255 | +351% |
7.1.0 | 100.000 | 0.441542 | +748% |
7.0.33 | 100.000 | 0.118710 | +201% |
7.0.7 | 100.000 | 0.417670 | +707% |
5.6.40 | 100.000 | 0.059041 | 100% |
5.6.22 | 100.000 | 0.243974 | +413% |
5.5.36 | 100.000 | 0.259998 | +440% |
5.4.45 | 100.000 | 0.272093 | +461% |
5.3.29 | 100.000 | 0.431628 | +731% |
8.4.4 | 10.000 | 0.013549 | +165% |
8.3.16 | 100.000 | 0.111216 | +188% |
8.3.13 | 100.000 | 0.121655 | +206% |
8.3.10 | 10.000 | 0.015598 | +190% |
8.3.10 | 100.000 | 0.122604 | +208% |
8.0.29 | 100.000 | 0.100080 | +170% |
8.0.28 | 100.000 | 0.104130 | +176% |
8.0.27 | 100.000 | 0.110327 | +187% |
8.0.26 | 100.000 | 0.111526 | +189% |
8.0.25 | 100.000 | 0.107543 | +182% |
8.0.24 | 100.000 | 0.104667 | +177% |
8.0.23 | 100.000 | 0.101350 | +172% |
8.0.20 | 100.000 | 0.100743 | +171% |
8.3.16 | 10.000 | 0.013867 | +169% |
8.3.13 | 10.000 | 0.014665 | +179% |
8.0.19 | 100.000 | 0.109188 | +185% |
8.0.17 | 100.000 | 0.111426 | +189% |
8.0.16 | 100.000 | 0.113215 | +192% |
8.0.14 | 100.000 | 0.112522 | +191% |
8.0.11 | 100.000 | 0.109197 | +185% |
8.0.9 | 100.000 | 0.108773 | +184% |
8.0.8 | 100.000 | 0.121956 | +207% |
7.4.10 | 100.000 | 0.114583 | +194% |
8.3.9 | 10.000 | 0.015126 | +184% |
8.0.30 | 100.000 | 0.114064 | +193% |
7.4.11 | 100.000 | 0.111299 | +189% |
8.0.30 | 10.000 | 0.013496 | +165% |
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 | +158% |
8.0.24 | 10.000 | 0.013353 | +163% |
8.0.23 | 10.000 | 0.012904 | +157% |
8.0.20 | 10.000 | 0.012093 | +147% |
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% |
8.0.11 | 10.000 | 0.017256 | +210% |
8.0.7 | 100.000 | 0.113705 | +193% |
8.0.10 | 10.000 | 0.017519 | +214% |
8.0.10 | 100.000 | 0.109476 | +185% |
8.0.3 | 100.000 | 0.134497 | +228% |
8.0.2 | 100.000 | 0.159844 | +271% |
8.0.0 | 100.000 | 0.111189 | +188% |
7.4.29 | 100.000 | 0.109046 | +185% |
8.0.0 | 10.000 | 0.016773 | +205% |
7.4.33 | 100.000 | 0.110936 | +188% |
7.4.32 | 100.000 | 0.105031 | +178% |
8.0.2 | 10.000 | 0.020642 | +252% |
7.4.33 | 10.000 | 0.013294 | +162% |
7.4.30 | 10.000 | 0.012880 | +157% |
7.4.30 | 100.000 | 0.104564 | +177% |
7.4.29 | 10.000 | 0.018403 | +224% |
7.4.28 | 10.000 | 0.016210 | +198% |
7.4.28 | 100.000 | 0.108225 | +183% |
7.4.27 | 100.000 | 0.112249 | +190% |
7.4.24 | 10.000 | 0.017577 | +214% |
7.4.24 | 100.000 | 0.108064 | +183% |
7.4.23 | 100.000 | 0.118540 | +201% |
7.4.22 | 10.000 | 0.016293 | +199% |
7.4.22 | 100.000 | 0.109274 | +185% |
7.4.21 | 100.000 | 0.109180 | +185% |
8.0.9 | 10.000 | 0.015496 | +189% |
7.4.27 | 10.000 | 0.017555 | +214% |
7.4.21 | 10.000 | 0.019746 | +241% |
7.4.20 | 10.000 | 0.018053 | +220% |
7.4.20 | 100.000 | 0.111639 | +189% |
7.4.16 | 100.000 | 0.134280 | +227% |
8.0.8 | 10.000 | 0.020160 | +246% |
8.0.7 | 10.000 | 0.018156 | +221% |
8.0.3 | 10.000 | 0.020780 | +253% |
7.4.32 | 10.000 | 0.014333 | +175% |
7.4.23 | 10.000 | 0.016301 | +199% |
7.4.16 | 10.000 | 0.020532 | +250% |
7.4.15 | 10.000 | 0.022369 | +273% |
7.4.15 | 100.000 | 0.155655 | +264% |
7.4.13 | 100.000 | 0.112263 | +190% |
7.4.13 | 10.000 | 0.015595 | +190% |
7.4.12 | 100.000 | 0.114470 | +194% |
7.4.6 | 100.000 | 0.108714 | +184% |
7.4.12 | 10.000 | 0.013846 | +169% |
7.4.11 | 10.000 | 0.017607 | +215% |
7.4.10 | 10.000 | 0.014065 | +171% |
7.4.7 | 10.000 | 0.016840 | +205% |
7.4.7 | 100.000 | 0.113318 | +192% |
7.4.6 | 10.000 | 0.016868 | +206% |
7.4.5 | 10.000 | 0.017923 | +219% |
7.4.5 | 100.000 | 0.110875 | +188% |
7.4.4 | 10.000 | 0.015629 | +191% |
7.4.4 | 100.000 | 0.104981 | +178% |
7.4.3 | 100.000 | 0.106236 | +180% |
7.4.3 | 10.000 | 0.014347 | +175% |
7.4.2 | 10.000 | 0.017861 | +218% |
7.4.2 | 100.000 | 0.112617 | +191% |
7.4.1 | 10.000 | 0.017339 | +211% |
7.4.0 | 10.000 | 0.019623 | +239% |
7.3.33 | 10.000 | 0.013603 | +166% |
7.3.31 | 10.000 | 0.016904 | +206% |
7.3.30 | 10.000 | 0.016636 | +203% |
7.3.29 | 10.000 | 0.016529 | +202% |
7.3.28 | 10.000 | 0.016887 | +206% |
7.3.27 | 10.000 | 0.021082 | +257% |
7.3.24 | 10.000 | 0.015616 | +190% |
7.3.23 | 10.000 | 0.016177 | +197% |
7.3.22 | 10.000 | 0.016954 | +207% |
7.3.19 | 10.000 | 0.016864 | +206% |
7.3.18 | 10.000 | 0.016995 | +207% |
7.3.17 | 10.000 | 0.015734 | +192% |
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 | +234% |
7.3.12 | 10.000 | 0.017443 | +213% |
7.3.11 | 10.000 | 0.017688 | +216% |
7.3.9 | 10.000 | 0.021365 | +260% |
7.3.8 | 10.000 | 0.020879 | +255% |
7.2.34 | 10.000 | 0.014806 | +181% |
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.015644 | +191% |
7.1.32 | 10.000 | 0.022499 | +274% |
7.1.31 | 10.000 | 0.020889 | +255% |
7.1.0 | 10.000 | 0.044992 | +549% |
7.0.33 | 10.000 | 0.015598 | +190% |
7.0.7 | 10.000 | 0.042437 | +517% |
5.6.40 | 10.000 | 0.008202 | 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 | +560% |