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 | 100% |
8.3.10 | 100.000 | 0.122604 | 100% |
8.3.9 | 100.000 | 0.117591 | 100% |
7.3.33 | 100.000 | 0.109540 | 100% |
7.3.31 | 100.000 | 0.108788 | 100% |
7.3.30 | 100.000 | 0.109196 | 100% |
7.3.29 | 100.000 | 0.110520 | 100% |
7.3.28 | 100.000 | 0.110520 | 100% |
7.3.27 | 100.000 | 0.136551 | 100% |
7.3.24 | 100.000 | 0.112310 | 100% |
7.3.23 | 100.000 | 0.116295 | 100% |
7.3.22 | 100.000 | 0.111253 | 100% |
7.3.19 | 100.000 | 0.114518 | 100% |
7.3.18 | 100.000 | 0.110690 | 100% |
7.3.17 | 100.000 | 0.105156 | 100% |
7.3.16 | 100.000 | 0.107194 | 100% |
7.3.15 | 100.000 | 0.107951 | 100% |
7.3.14 | 100.000 | 0.112270 | 100% |
7.3.13 | 100.000 | 0.113318 | 100% |
7.3.12 | 100.000 | 0.107324 | 100% |
7.3.11 | 100.000 | 0.159717 | 100% |
7.3.9 | 100.000 | 0.206405 | 100% |
7.3.8 | 100.000 | 0.205394 | 100% |
7.2.29 | 100.000 | 0.109563 | 100% |
8.3.13 | 10.000 | 0.014704 | 100% |
7.2.34 | 100.000 | 0.113178 | 100% |
7.2.33 | 100.000 | 0.110288 | 100% |
7.2.31 | 100.000 | 0.111477 | 100% |
7.2.30 | 100.000 | 0.110113 | 100% |
8.3.10 | 10.000 | 0.015598 | 100% |
7.2.28 | 100.000 | 0.107163 | 100% |
7.2.27 | 100.000 | 0.110673 | 100% |
7.2.26 | 100.000 | 0.111914 | 100% |
7.2.25 | 100.000 | 0.104776 | 100% |
7.2.24 | 100.000 | 0.158726 | 100% |
7.2.22 | 100.000 | 0.205707 | 100% |
7.2.21 | 100.000 | 0.203741 | 100% |
7.1.33 | 100.000 | 0.114062 | 100% |
7.1.32 | 100.000 | 0.214367 | 100% |
7.1.31 | 100.000 | 0.207255 | 100% |
7.1.0 | 100.000 | 0.441542 | 100% |
7.0.33 | 100.000 | 0.118666 | 100% |
7.0.7 | 100.000 | 0.417670 | 100% |
5.6.40 | 100.000 | 0.058761 | 100% |
5.6.22 | 100.000 | 0.243974 | 100% |
5.5.36 | 100.000 | 0.259998 | 100% |
5.4.45 | 100.000 | 0.272093 | 100% |
5.3.29 | 100.000 | 0.431628 | 100% |
8.3.9 | 10.000 | 0.015126 | 100% |
8.0.30 | 100.000 | 0.113751 | 100% |
8.0.29 | 100.000 | 0.100080 | 100% |
8.0.28 | 100.000 | 0.104130 | 100% |
8.0.27 | 100.000 | 0.110327 | 100% |
8.0.26 | 100.000 | 0.111526 | 100% |
8.0.25 | 100.000 | 0.107543 | 100% |
8.0.24 | 100.000 | 0.104667 | 100% |
8.0.23 | 100.000 | 0.101350 | 100% |
8.0.20 | 10.000 | 0.012093 | 100% |
8.0.20 | 100.000 | 0.100743 | 100% |
8.0.19 | 10.000 | 0.017472 | 100% |
8.0.19 | 100.000 | 0.109188 | 100% |
8.0.17 | 10.000 | 0.017809 | 100% |
8.0.17 | 100.000 | 0.111426 | 100% |
8.0.16 | 10.000 | 0.016258 | 100% |
8.0.16 | 100.000 | 0.113215 | 100% |
8.0.14 | 10.000 | 0.018141 | 100% |
8.0.14 | 100.000 | 0.112522 | 100% |
8.0.11 | 100.000 | 0.109197 | 100% |
8.0.10 | 100.000 | 0.109476 | 100% |
8.0.9 | 100.000 | 0.108773 | 100% |
8.0.8 | 100.000 | 0.121956 | 100% |
8.0.7 | 100.000 | 0.113705 | 100% |
8.0.3 | 100.000 | 0.134497 | 100% |
8.0.2 | 100.000 | 0.159844 | 100% |
8.0.0 | 100.000 | 0.111189 | 100% |
7.4.33 | 100.000 | 0.109958 | 100% |
7.4.32 | 100.000 | 0.105031 | 100% |
7.4.30 | 100.000 | 0.104564 | 100% |
7.4.28 | 100.000 | 0.108225 | 100% |
7.4.27 | 100.000 | 0.112249 | 100% |
7.4.24 | 100.000 | 0.108064 | 100% |
7.4.23 | 100.000 | 0.118540 | 100% |
7.4.22 | 100.000 | 0.109274 | 100% |
8.0.11 | 10.000 | 0.017256 | 100% |
8.0.10 | 10.000 | 0.017519 | 100% |
8.0.0 | 10.000 | 0.016773 | 100% |
7.4.29 | 100.000 | 0.109046 | 100% |
7.4.21 | 10.000 | 0.019746 | 100% |
7.4.21 | 100.000 | 0.109180 | 100% |
7.4.20 | 10.000 | 0.018053 | 100% |
7.4.20 | 100.000 | 0.111639 | 100% |
7.4.16 | 100.000 | 0.134280 | 100% |
7.4.15 | 100.000 | 0.155655 | 100% |
7.4.33 | 10.000 | 0.013240 | 100% |
7.4.32 | 10.000 | 0.014333 | 100% |
7.4.30 | 10.000 | 0.012880 | 100% |
7.4.29 | 10.000 | 0.018403 | 100% |
7.4.24 | 10.000 | 0.017577 | 100% |
7.4.23 | 10.000 | 0.016301 | 100% |
7.4.22 | 10.000 | 0.016293 | 100% |
7.4.13 | 100.000 | 0.112263 | 100% |
7.4.12 | 100.000 | 0.114470 | 100% |
7.4.11 | 100.000 | 0.111299 | 100% |
7.4.10 | 100.000 | 0.114583 | 100% |
8.0.2 | 10.000 | 0.020642 | 100% |
7.4.0 | 100.000 | 0.180565 | 100% |
8.0.30 | 10.000 | 0.013488 | 100% |
8.0.29 | 10.000 | 0.011424 | 100% |
8.0.28 | 10.000 | 0.012536 | 100% |
8.0.27 | 10.000 | 0.013529 | 100% |
8.0.26 | 10.000 | 0.014942 | 100% |
8.0.25 | 10.000 | 0.012940 | 100% |
8.0.24 | 10.000 | 0.013353 | 100% |
8.0.23 | 10.000 | 0.012904 | 100% |
8.0.9 | 10.000 | 0.015496 | 100% |
8.0.8 | 10.000 | 0.020160 | 100% |
8.0.7 | 10.000 | 0.018156 | 100% |
8.0.3 | 10.000 | 0.020780 | 100% |
7.4.28 | 10.000 | 0.016210 | 100% |
7.4.27 | 10.000 | 0.017555 | 100% |
7.4.16 | 10.000 | 0.020532 | 100% |
7.4.15 | 10.000 | 0.022369 | 100% |
7.4.13 | 10.000 | 0.015595 | 100% |
7.4.12 | 10.000 | 0.013846 | 100% |
7.4.11 | 10.000 | 0.017607 | 100% |
7.4.10 | 10.000 | 0.014065 | 100% |
7.4.7 | 10.000 | 0.016840 | 100% |
7.4.7 | 100.000 | 0.113318 | 100% |
7.4.6 | 10.000 | 0.016868 | 100% |
7.4.6 | 100.000 | 0.108714 | 100% |
7.4.5 | 10.000 | 0.017923 | 100% |
7.4.5 | 100.000 | 0.110875 | 100% |
7.4.4 | 10.000 | 0.015629 | 100% |
7.4.4 | 100.000 | 0.104981 | 100% |
7.4.3 | 10.000 | 0.014347 | 100% |
7.4.3 | 100.000 | 0.106236 | 100% |
7.4.1 | 100.000 | 0.107793 | 100% |
7.4.2 | 10.000 | 0.017861 | 100% |
7.4.2 | 100.000 | 0.112617 | 100% |
7.4.1 | 10.000 | 0.017339 | 100% |
7.4.0 | 10.000 | 0.019623 | 100% |
7.3.33 | 10.000 | 0.013688 | 100% |
7.3.31 | 10.000 | 0.016904 | 100% |
7.3.30 | 10.000 | 0.016636 | 100% |
7.3.29 | 10.000 | 0.016529 | 100% |
7.3.28 | 10.000 | 0.016887 | 100% |
7.3.27 | 10.000 | 0.021082 | 100% |
7.3.24 | 10.000 | 0.015616 | 100% |
7.3.23 | 10.000 | 0.016177 | 100% |
7.3.22 | 10.000 | 0.016954 | 100% |
7.3.19 | 10.000 | 0.016864 | 100% |
7.3.18 | 10.000 | 0.016995 | 100% |
7.3.17 | 10.000 | 0.015734 | 100% |
7.3.16 | 10.000 | 0.015655 | 100% |
7.3.15 | 10.000 | 0.017761 | 100% |
7.3.14 | 10.000 | 0.020074 | 100% |
7.3.13 | 10.000 | 0.019230 | 100% |
7.3.12 | 10.000 | 0.017443 | 100% |
7.3.11 | 10.000 | 0.017688 | 100% |
7.3.9 | 10.000 | 0.021365 | 100% |
7.3.8 | 10.000 | 0.020879 | 100% |
7.2.34 | 10.000 | 0.014831 | 100% |
7.2.33 | 10.000 | 0.016013 | 100% |
7.2.31 | 10.000 | 0.017381 | 100% |
7.2.30 | 10.000 | 0.016265 | 100% |
7.2.29 | 10.000 | 0.017117 | 100% |
7.2.28 | 10.000 | 0.016496 | 100% |
7.2.27 | 10.000 | 0.017938 | 100% |
7.2.26 | 10.000 | 0.018557 | 100% |
7.2.25 | 10.000 | 0.016080 | 100% |
7.2.24 | 10.000 | 0.016835 | 100% |
7.2.22 | 10.000 | 0.021534 | 100% |
7.2.21 | 10.000 | 0.020416 | 100% |
7.1.33 | 10.000 | 0.015663 | 100% |
7.1.32 | 10.000 | 0.022499 | 100% |
7.1.31 | 10.000 | 0.020889 | 100% |
7.1.0 | 10.000 | 0.044992 | 100% |
7.0.33 | 10.000 | 0.015697 | 100% |
7.0.7 | 10.000 | 0.042437 | 100% |
5.6.40 | 10.000 | 0.008220 | 100% |
5.6.22 | 10.000 | 0.025903 | 100% |
5.5.36 | 10.000 | 0.027150 | 100% |
5.4.45 | 10.000 | 0.028442 | 100% |
5.3.29 | 10.000 | 0.045968 | 100% |
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.3.13 | 100.000 | 0.206460 | +162% |
8.3.10 | 100.000 | 0.185296 | +151% |
8.3.9 | 100.000 | 0.185057 | +157% |
7.3.33 | 100.000 | 0.310344 | +283% |
7.3.31 | 100.000 | 0.299237 | +275% |
7.3.30 | 100.000 | 0.300719 | +275% |
7.3.29 | 100.000 | 0.307804 | +279% |
7.3.28 | 100.000 | 0.383491 | +347% |
7.3.27 | 100.000 | 0.485760 | +356% |
7.3.24 | 100.000 | 0.400850 | +357% |
7.3.23 | 100.000 | 0.341428 | +294% |
7.3.22 | 100.000 | 0.341216 | +307% |
7.3.19 | 100.000 | 0.401447 | +351% |
7.3.18 | 100.000 | 0.379022 | +342% |
7.3.17 | 100.000 | 0.300677 | +286% |
7.3.16 | 100.000 | 0.305103 | +285% |
7.3.15 | 100.000 | 0.370906 | +344% |
7.3.14 | 100.000 | 0.389436 | +347% |
7.3.13 | 100.000 | 0.378077 | +334% |
7.3.12 | 100.000 | 0.339834 | +317% |
7.3.11 | 100.000 | 0.404408 | +253% |
7.3.9 | 100.000 | 0.559601 | +271% |
7.3.8 | 100.000 | 0.452514 | +220% |
7.2.29 | 100.000 | 0.371808 | +339% |
8.3.13 | 10.000 | 0.024652 | +168% |
7.2.34 | 100.000 | 0.349295 | +309% |
7.2.33 | 100.000 | 0.400721 | +363% |
7.2.31 | 100.000 | 0.391377 | +351% |
7.2.30 | 100.000 | 0.384431 | +349% |
8.3.10 | 10.000 | 0.023904 | +153% |
7.2.28 | 100.000 | 0.299051 | +279% |
7.2.27 | 100.000 | 0.315376 | +285% |
7.2.26 | 100.000 | 0.300777 | +269% |
7.2.25 | 100.000 | 0.341221 | +326% |
7.2.24 | 100.000 | 0.399165 | +251% |
7.2.22 | 100.000 | 0.490970 | +239% |
7.2.21 | 100.000 | 0.523295 | +257% |
7.1.33 | 100.000 | 0.344839 | +302% |
7.1.32 | 100.000 | 0.507929 | +237% |
7.1.31 | 100.000 | 0.468124 | +226% |
7.1.0 | 100.000 | 1.963902 | +445% |
7.0.33 | 100.000 | 0.351101 | +296% |
7.0.7 | 100.000 | 1.838893 | +440% |
5.6.40 | 100.000 | 0.284041 | +483% |
5.6.22 | 100.000 | 1.810759 | +742% |
5.5.36 | 100.000 | 1.907814 | +734% |
5.4.45 | 100.000 | 1.829245 | +672% |
5.3.29 | 100.000 | 2.045671 | +474% |
8.3.9 | 10.000 | 0.022811 | +151% |
8.0.30 | 100.000 | 0.173372 | +152% |
8.0.29 | 100.000 | 0.148756 | +149% |
8.0.28 | 100.000 | 0.151660 | +146% |
8.0.27 | 100.000 | 0.161930 | +147% |
8.0.26 | 100.000 | 0.162827 | +146% |
8.0.25 | 100.000 | 0.160888 | +150% |
8.0.24 | 100.000 | 0.152023 | +145% |
8.0.23 | 100.000 | 0.154821 | +153% |
8.0.20 | 10.000 | 0.017984 | +149% |
8.0.20 | 100.000 | 0.152091 | +151% |
8.0.19 | 10.000 | 0.023748 | +136% |
8.0.19 | 100.000 | 0.155717 | +143% |
8.0.17 | 10.000 | 0.023806 | +134% |
8.0.17 | 100.000 | 0.164903 | +148% |
8.0.16 | 10.000 | 0.023439 | +144% |
8.0.16 | 100.000 | 0.163333 | +144% |
8.0.14 | 10.000 | 0.023220 | +128% |
8.0.14 | 100.000 | 0.172365 | +153% |
8.0.11 | 100.000 | 0.157449 | +144% |
8.0.10 | 100.000 | 0.158719 | +145% |
8.0.9 | 100.000 | 0.161717 | +149% |
8.0.8 | 100.000 | 0.164444 | +135% |
8.0.7 | 100.000 | 0.185617 | +163% |
8.0.3 | 100.000 | 0.196395 | +146% |
8.0.2 | 100.000 | 0.231208 | +145% |
8.0.0 | 100.000 | 0.163020 | +147% |
7.4.33 | 100.000 | 0.314788 | +286% |
7.4.32 | 100.000 | 0.296731 | +283% |
7.4.30 | 100.000 | 0.296848 | +284% |
7.4.28 | 100.000 | 0.318077 | +294% |
7.4.27 | 100.000 | 0.319716 | +285% |
7.4.24 | 100.000 | 0.380434 | +352% |
7.4.23 | 100.000 | 0.379872 | +320% |
7.4.22 | 100.000 | 0.304040 | +278% |
8.0.11 | 10.000 | 0.022881 | +133% |
8.0.10 | 10.000 | 0.022839 | +130% |
8.0.0 | 10.000 | 0.022400 | +134% |
7.4.29 | 100.000 | 0.297132 | +272% |
7.4.21 | 10.000 | 0.046875 | +237% |
7.4.21 | 100.000 | 0.385614 | +353% |
7.4.20 | 10.000 | 0.039160 | +217% |
7.4.20 | 100.000 | 0.305001 | +273% |
7.4.16 | 100.000 | 0.379309 | +282% |
7.4.15 | 100.000 | 0.554792 | +356% |
7.4.33 | 10.000 | 0.034650 | +262% |
7.4.32 | 10.000 | 0.033525 | +234% |
7.4.30 | 10.000 | 0.032019 | +249% |
7.4.29 | 10.000 | 0.040057 | +218% |
7.4.24 | 10.000 | 0.045511 | +259% |
7.4.23 | 10.000 | 0.044359 | +272% |
7.4.22 | 10.000 | 0.037237 | +229% |
7.4.13 | 100.000 | 0.315736 | +281% |
7.4.12 | 100.000 | 0.356923 | +312% |
7.4.11 | 100.000 | 0.407618 | +366% |
7.4.10 | 100.000 | 0.331637 | +289% |
8.0.2 | 10.000 | 0.033107 | +160% |
7.4.0 | 100.000 | 0.439547 | +243% |
8.0.30 | 10.000 | 0.021853 | +162% |
8.0.29 | 10.000 | 0.015543 | +136% |
8.0.28 | 10.000 | 0.017010 | +136% |
8.0.27 | 10.000 | 0.018474 | +137% |
8.0.26 | 10.000 | 0.019541 | +131% |
8.0.25 | 10.000 | 0.019528 | +151% |
8.0.24 | 10.000 | 0.019686 | +147% |
8.0.23 | 10.000 | 0.022088 | +171% |
8.0.9 | 10.000 | 0.022416 | +145% |
8.0.8 | 10.000 | 0.023893 | +119% |
8.0.7 | 10.000 | 0.025789 | +142% |
8.0.3 | 10.000 | 0.028141 | +135% |
7.4.28 | 10.000 | 0.037608 | +232% |
7.4.27 | 10.000 | 0.037833 | +216% |
7.4.16 | 10.000 | 0.048541 | +236% |
7.4.15 | 10.000 | 0.068122 | +305% |
7.4.13 | 10.000 | 0.038081 | +244% |
7.4.12 | 10.000 | 0.037222 | +269% |
7.4.11 | 10.000 | 0.045587 | +259% |
7.4.10 | 10.000 | 0.038653 | +275% |
7.4.7 | 10.000 | 0.048375 | +287% |
7.4.7 | 100.000 | 0.404837 | +357% |
7.4.6 | 10.000 | 0.038182 | +226% |
7.4.6 | 100.000 | 0.299543 | +276% |
7.4.5 | 10.000 | 0.038767 | +216% |
7.4.5 | 100.000 | 0.303801 | +274% |
7.4.4 | 10.000 | 0.038316 | +245% |
7.4.4 | 100.000 | 0.298715 | +285% |
7.4.3 | 10.000 | 0.047734 | +333% |
7.4.3 | 100.000 | 0.369907 | +348% |
7.4.1 | 100.000 | 0.303509 | +282% |
7.4.2 | 10.000 | 0.049302 | +276% |
7.4.2 | 100.000 | 0.393985 | +350% |
7.4.1 | 10.000 | 0.042165 | +243% |
7.4.0 | 10.000 | 0.043931 | +224% |
7.3.33 | 10.000 | 0.034860 | +255% |
7.3.31 | 10.000 | 0.036848 | +218% |
7.3.30 | 10.000 | 0.036696 | +221% |
7.3.29 | 10.000 | 0.040222 | +243% |
7.3.28 | 10.000 | 0.048292 | +286% |
7.3.27 | 10.000 | 0.057941 | +275% |
7.3.24 | 10.000 | 0.045681 | +293% |
7.3.23 | 10.000 | 0.039437 | +244% |
7.3.22 | 10.000 | 0.037483 | +221% |
7.3.19 | 10.000 | 0.046362 | +275% |
7.3.18 | 10.000 | 0.045633 | +269% |
7.3.17 | 10.000 | 0.037350 | +237% |
7.3.16 | 10.000 | 0.039920 | +255% |
7.3.15 | 10.000 | 0.041561 | +234% |
7.3.14 | 10.000 | 0.047751 | +238% |
7.3.13 | 10.000 | 0.046102 | +240% |
7.3.12 | 10.000 | 0.039935 | +229% |
7.3.11 | 10.000 | 0.041210 | +233% |
7.3.9 | 10.000 | 0.050844 | +238% |
7.3.8 | 10.000 | 0.045795 | +219% |
7.2.34 | 10.000 | 0.039912 | +269% |
7.2.33 | 10.000 | 0.045106 | +282% |
7.2.31 | 10.000 | 0.046866 | +270% |
7.2.30 | 10.000 | 0.045146 | +278% |
7.2.29 | 10.000 | 0.043911 | +257% |
7.2.28 | 10.000 | 0.036339 | +220% |
7.2.27 | 10.000 | 0.040217 | +224% |
7.2.26 | 10.000 | 0.038621 | +208% |
7.2.25 | 10.000 | 0.041515 | +258% |
7.2.24 | 10.000 | 0.040664 | +242% |
7.2.22 | 10.000 | 0.045562 | +212% |
7.2.21 | 10.000 | 0.050658 | +248% |
7.1.33 | 10.000 | 0.039792 | +254% |
7.1.32 | 10.000 | 0.046326 | +206% |
7.1.31 | 10.000 | 0.046152 | +221% |
7.1.0 | 10.000 | 0.199870 | +444% |
7.0.33 | 10.000 | 0.040353 | +257% |
7.0.7 | 10.000 | 0.187316 | +441% |
5.6.40 | 10.000 | 0.033429 | +407% |
5.6.22 | 10.000 | 0.186414 | +720% |
5.5.36 | 10.000 | 0.196203 | +723% |
5.4.45 | 10.000 | 0.188437 | +663% |
5.3.29 | 10.000 | 0.212034 | +461% |