PregReplaceTest

Replace a text with preg_replace


<?php 

$text 
$this->getTextLarge();

$this->start($loop);

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

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.070612 +159%
8.3.10 100.000 0.064130 +144%
8.3.9 100.000 0.068628 +155%
7.3.33 100.000 0.052017 +117%
7.3.31 100.000 0.052869 +119%
7.3.30 100.000 0.044588 100%
7.3.29 100.000 0.046893 +106%
7.3.28 100.000 0.051580 +116%
7.3.27 100.000 0.059044 +133%
7.3.24 100.000 0.056617 +128%
7.3.23 100.000 0.061170 +138%
7.3.22 100.000 0.057630 +130%
7.3.19 100.000 0.057436 +129%
7.3.18 100.000 0.046209 +104%
7.3.17 100.000 0.050221 +113%
7.3.16 100.000 0.045286 +102%
7.3.15 100.000 0.044933 +101%
7.3.14 100.000 0.050198 +113%
7.3.13 100.000 0.053061 +120%
7.3.12 100.000 0.053554 +121%
7.3.11 100.000 0.102871 +232%
7.3.9 100.000 0.137044 +309%
7.3.8 100.000 0.140669 +317%
7.2.29 100.000 0.165157 +372%
8.3.13 10.000 0.009100 +165%
7.2.34 100.000 0.171472 +386%
7.2.33 100.000 0.167287 +377%
7.2.31 100.000 0.167758 +378%
7.2.30 100.000 0.165247 +372%
8.3.10 10.000 0.009107 +165%
7.2.28 100.000 0.162330 +366%
7.2.27 100.000 0.168092 +379%
7.2.26 100.000 0.166392 +375%
7.2.25 100.000 0.163384 +368%
7.2.24 100.000 0.234726 +529%
7.2.22 100.000 0.290675 +655%
7.2.21 100.000 0.289329 +652%
7.1.33 100.000 0.182840 +412%
7.1.32 100.000 0.315264 +710%
7.1.31 100.000 0.305234 +688%
7.1.0 100.000 0.349555 +787%
7.0.33 100.000 0.187931 +423%
7.0.7 100.000 0.335885 +757%
5.6.40 100.000 0.274563 +618%
5.6.22 100.000 1.089662 +2454%
5.5.36 100.000 1.102219 +2483%
5.4.45 100.000 1.121887 +2527%
5.3.29 100.000 1.274672 +2871%
8.3.9 10.000 0.007580 +137%
8.0.30 100.000 0.055109 +124%
8.0.29 100.000 0.046158 +104%
8.0.28 100.000 0.045611 +103%
8.0.27 100.000 0.051301 +116%
8.0.26 100.000 0.054638 +123%
8.0.25 100.000 0.050193 +113%
8.0.24 100.000 0.047014 +106%
8.0.23 100.000 0.047536 +107%
8.0.20 10.000 0.006166 +111%
8.0.20 100.000 0.046553 +105%
8.0.19 10.000 0.008595 +155%
8.0.19 100.000 0.054064 +122%
8.0.17 10.000 0.008634 +156%
8.0.17 100.000 0.058032 +131%
8.0.16 10.000 0.011148 +202%
8.0.16 100.000 0.068571 +154%
8.0.14 10.000 0.008998 +163%
8.0.14 100.000 0.057956 +131%
8.0.11 100.000 0.054228 +122%
8.0.10 100.000 0.048844 +110%
8.0.9 100.000 0.045572 +103%
8.0.8 100.000 0.049256 +111%
8.0.7 100.000 0.056049 +126%
8.0.3 100.000 0.056970 +128%
8.0.2 100.000 0.071386 +161%
8.0.0 100.000 0.054814 +123%
7.4.33 100.000 0.052443 +118%
7.4.32 100.000 0.047683 +107%
7.4.30 100.000 0.045047 +101%
7.4.28 100.000 0.057529 +130%
7.4.27 100.000 0.062887 +142%
7.4.24 100.000 0.055266 +124%
7.4.23 100.000 0.045465 +102%
7.4.22 100.000 0.046582 +105%
8.0.11 10.000 0.009321 +168%
8.0.10 10.000 0.008173 +148%
8.0.0 10.000 0.008699 +157%
7.4.29 100.000 0.052713 +119%
7.4.21 10.000 0.008068 +146%
7.4.21 100.000 0.048984 +110%
7.4.20 10.000 0.007408 +134%
7.4.20 100.000 0.049015 +110%
7.4.16 100.000 0.056812 +128%
7.4.15 100.000 0.066503 +150%
7.4.33 10.000 0.006417 +116%
7.4.32 10.000 0.006784 +123%
7.4.30 10.000 0.005946 +107%
7.4.29 10.000 0.008851 +160%
7.4.24 10.000 0.008466 +153%
7.4.23 10.000 0.006643 +120%
7.4.22 10.000 0.007488 +135%
7.4.13 100.000 0.054863 +124%
7.4.12 100.000 0.058247 +131%
7.4.11 100.000 0.056301 +127%
7.4.10 100.000 0.054767 +123%
8.0.2 10.000 0.009642 +174%
7.4.0 100.000 0.120482 +271%
8.0.30 10.000 0.007298 +132%
8.0.29 10.000 0.005665 +102%
8.0.28 10.000 0.005919 +107%
8.0.27 10.000 0.006470 +117%
8.0.26 10.000 0.007119 +129%
8.0.25 10.000 0.007300 +132%
8.0.24 10.000 0.006250 +113%
8.0.23 10.000 0.005532 100%
8.0.9 10.000 0.007130 +129%
8.0.8 10.000 0.007405 +134%
8.0.7 10.000 0.008137 +147%
8.0.3 10.000 0.009215 +167%
7.4.28 10.000 0.008577 +155%
7.4.27 10.000 0.009435 +171%
7.4.16 10.000 0.008999 +163%
7.4.15 10.000 0.010519 +190%
7.4.13 10.000 0.007797 +141%
7.4.12 10.000 0.009060 +164%
7.4.11 10.000 0.008176 +148%
7.4.10 10.000 0.008184 +148%
7.4.7 10.000 0.008190 +148%
7.4.7 100.000 0.055126 +124%
7.4.6 10.000 0.007895 +143%
7.4.6 100.000 0.047550 +107%
7.4.5 10.000 0.007540 +136%
7.4.5 100.000 0.044396 100%
7.4.4 10.000 0.007929 +143%
7.4.4 100.000 0.045157 +102%
7.4.3 10.000 0.007346 +133%
7.4.3 100.000 0.045834 +103%
7.4.1 100.000 0.049874 +112%
7.4.2 10.000 0.008304 +150%
7.4.2 100.000 0.049106 +111%
7.4.1 10.000 0.007922 +143%
7.4.0 10.000 0.013456 +243%
7.3.33 10.000 0.006862 +124%
7.3.31 10.000 0.008709 +157%
7.3.30 10.000 0.007094 +128%
7.3.29 10.000 0.007328 +132%
7.3.28 10.000 0.008214 +148%
7.3.27 10.000 0.009680 +175%
7.3.24 10.000 0.007859 +142%
7.3.23 10.000 0.008064 +146%
7.3.22 10.000 0.007858 +142%
7.3.19 10.000 0.008559 +155%
7.3.18 10.000 0.007822 +141%
7.3.17 10.000 0.006648 +120%
7.3.16 10.000 0.006365 +115%
7.3.15 10.000 0.006064 +110%
7.3.14 10.000 0.009343 +169%
7.3.13 10.000 0.009259 +167%
7.3.12 10.000 0.008621 +156%
7.3.11 10.000 0.011654 +211%
7.3.9 10.000 0.015574 +282%
7.3.8 10.000 0.015197 +275%
7.2.34 10.000 0.021336 +386%
7.2.33 10.000 0.023249 +420%
7.2.31 10.000 0.023140 +418%
7.2.30 10.000 0.023271 +421%
7.2.29 10.000 0.023647 +427%
7.2.28 10.000 0.022822 +413%
7.2.27 10.000 0.026386 +477%
7.2.26 10.000 0.024961 +451%
7.2.25 10.000 0.022983 +415%
7.2.24 10.000 0.024269 +439%
7.2.22 10.000 0.029223 +528%
7.2.21 10.000 0.028769 +520%
7.1.33 10.000 0.023120 +418%
7.1.32 10.000 0.031897 +577%
7.1.31 10.000 0.030735 +556%
7.1.0 10.000 0.036185 +654%
7.0.33 10.000 0.023187 +419%
7.0.7 10.000 0.034728 +628%
5.6.40 10.000 0.032042 +579%
5.6.22 10.000 0.112575 +2035%
5.5.36 10.000 0.112203 +2028%
5.4.45 10.000 0.114153 +2064%
5.3.29 10.000 0.131122 +2370%