IncrementLocalToObjectTest

Increment a local variable and asing value to object at end


<?php 

$this
->start($loop);

$counter 0;

for (
$i 0$i $this->loop; ++$i) {
    
$counter++;
}

$object = new stdClass;
$object->counter $counter;

return 
$this->end();
PHP Loops Seconds Percent
8.3.9 100.000 0.003848 +337%
8.0.9 100.000 0.001843 +161%
7.3.33 100.000 0.002373 +208%
7.3.31 100.000 0.001853 +162%
7.3.30 100.000 0.001899 +166%
7.3.29 100.000 0.001748 +153%
7.3.28 100.000 0.002016 +176%
7.3.27 100.000 0.002400 +210%
7.3.24 100.000 0.001537 +134%
7.3.23 100.000 0.001712 +150%
7.3.22 100.000 0.002092 +183%
7.3.19 100.000 0.001726 +151%
7.3.18 100.000 0.001956 +171%
7.3.17 100.000 0.001676 +147%
7.3.16 100.000 0.001797 +157%
7.3.15 100.000 0.001792 +157%
7.3.14 100.000 0.002464 +216%
7.3.13 100.000 0.002512 +220%
7.3.12 100.000 0.002048 +179%
7.3.11 100.000 0.001694 +148%
7.3.9 100.000 0.001760 +154%
7.3.8 100.000 0.001690 +148%
7.2.34 100.000 0.002602 +228%
7.2.33 100.000 0.002227 +195%
7.2.31 100.000 0.002398 +210%
7.2.30 100.000 0.002647 +232%
7.2.29 100.000 0.002265 +198%
7.2.28 100.000 0.002354 +206%
7.2.27 100.000 0.003044 +266%
7.2.26 100.000 0.003140 +275%
7.2.25 100.000 0.002698 +236%
7.2.24 100.000 0.002099 +184%
7.2.22 100.000 0.002330 +204%
7.2.21 100.000 0.002157 +189%
7.1.33 100.000 0.003774 +330%
7.1.32 100.000 0.003032 +265%
7.1.31 100.000 0.002677 +234%
7.1.0 100.000 0.012347 +1080%
7.0.33 100.000 0.003051 +267%
7.0.7 100.000 0.012249 +1072%
5.6.40 100.000 0.008033 +703%
5.6.22 100.000 0.027412 +2398%
5.5.36 100.000 0.028942 +2532%
5.4.45 100.000 0.028406 +2485%
5.3.29 100.000 0.038355 +3355%
8.3.9 10.000 0.000576 +430%
8.0.30 100.000 0.002244 +196%
8.0.29 100.000 0.001386 +121%
8.0.28 100.000 0.001482 +130%
8.0.27 100.000 0.001980 +173%
8.0.26 100.000 0.001775 +155%
8.0.25 100.000 0.001975 +173%
8.0.24 100.000 0.001952 +171%
8.0.23 100.000 0.001655 +145%
8.0.20 100.000 0.001394 +122%
8.0.19 100.000 0.002012 +176%
8.0.16 100.000 0.001800 +157%
8.0.17 10.000 0.000241 +180%
8.0.17 100.000 0.001988 +174%
8.0.16 10.000 0.000178 +133%
8.0.14 10.000 0.000226 +169%
8.0.14 100.000 0.001889 +165%
8.0.11 100.000 0.001913 +167%
8.0.10 10.000 0.000197 +147%
8.0.10 100.000 0.001922 +168%
8.0.8 100.000 0.002033 +178%
8.0.7 100.000 0.001912 +167%
8.0.3 100.000 0.002402 +210%
8.0.11 10.000 0.000210 +157%
8.0.2 100.000 0.002571 +225%
8.0.0 100.000 0.001730 +151%
7.4.33 100.000 0.001662 +145%
7.4.30 100.000 0.001338 +117%
7.4.33 10.000 0.000186 +139%
7.4.32 100.000 0.001505 +132%
7.4.29 100.000 0.001892 +166%
7.4.28 100.000 0.001698 +149%
7.4.27 100.000 0.001775 +155%
7.4.24 100.000 0.001450 +127%
7.4.23 100.000 0.001519 +133%
7.4.22 100.000 0.001367 +120%
8.0.0 10.000 0.000221 +165%
7.4.21 10.000 0.000190 +142%
7.4.21 100.000 0.001769 +155%
7.4.20 10.000 0.000198 +148%
7.4.20 100.000 0.001493 +131%
7.4.15 100.000 0.001922 +168%
7.4.12 100.000 0.001143 100%
7.4.11 100.000 0.002186 +191%
7.4.10 100.000 0.001533 +134%
7.4.7 100.000 0.001508 +132%
8.0.19 10.000 0.000226 +169%
8.0.2 10.000 0.000269 +201%
7.4.32 10.000 0.000170 +127%
7.4.30 10.000 0.000147 +110%
7.4.29 10.000 0.000201 +150%
7.4.28 10.000 0.000182 +136%
7.4.27 10.000 0.000169 +126%
7.4.22 10.000 0.000134 100%
7.4.16 100.000 0.001877 +164%
7.4.13 100.000 0.001362 +119%
7.4.16 10.000 0.000208 +155%
7.4.7 10.000 0.000154 +115%
7.4.0 100.000 0.001367 +120%
8.0.30 10.000 0.000295 +220%
8.0.29 10.000 0.000147 +110%
8.0.28 10.000 0.000163 +122%
8.0.27 10.000 0.000204 +152%
8.0.26 10.000 0.000175 +130%
8.0.25 10.000 0.000223 +167%
8.0.24 10.000 0.000191 +143%
8.0.23 10.000 0.000197 +147%
8.0.20 10.000 0.000183 +137%
8.0.9 10.000 0.000197 +147%
8.0.8 10.000 0.000166 +124%
8.0.7 10.000 0.000236 +176%
8.0.3 10.000 0.000286 +214%
7.4.24 10.000 0.000158 +118%
7.4.23 10.000 0.000157 +117%
7.4.15 10.000 0.000237 +177%
7.4.13 10.000 0.000145 +108%
7.4.12 10.000 0.000149 +112%
7.4.11 10.000 0.000174 +130%
7.4.10 10.000 0.000159 +119%
7.4.6 10.000 0.000168 +125%
7.4.6 100.000 0.001554 +136%
7.4.4 10.000 0.000156 +117%
7.4.4 100.000 0.001522 +133%
7.4.5 10.000 0.000160 +120%
7.4.5 100.000 0.001531 +134%
7.4.3 100.000 0.001524 +133%
7.4.2 100.000 0.002001 +175%
7.4.3 10.000 0.000166 +124%
7.4.1 100.000 0.002105 +184%
7.4.2 10.000 0.000196 +146%
7.4.1 10.000 0.000239 +178%
7.4.0 10.000 0.000147 +110%
7.3.33 10.000 0.000263 +196%
7.3.31 10.000 0.000182 +136%
7.3.30 10.000 0.000202 +151%
7.3.29 10.000 0.000212 +158%
7.3.28 10.000 0.000207 +155%
7.3.27 10.000 0.000269 +201%
7.3.24 10.000 0.000181 +135%
7.3.23 10.000 0.000217 +162%
7.3.22 10.000 0.000188 +140%
7.3.19 10.000 0.000211 +158%
7.3.18 10.000 0.000227 +170%
7.3.17 10.000 0.000199 +149%
7.3.16 10.000 0.000173 +129%
7.3.15 10.000 0.000222 +166%
7.3.14 10.000 0.000260 +194%
7.3.13 10.000 0.000248 +185%
7.3.12 10.000 0.000239 +178%
7.3.11 10.000 0.000196 +146%
7.3.9 10.000 0.000182 +136%
7.3.8 10.000 0.000177 +132%
7.2.34 10.000 0.000294 +220%
7.2.33 10.000 0.000294 +219%
7.2.31 10.000 0.000266 +199%
7.2.30 10.000 0.000233 +174%
7.2.29 10.000 0.000200 +149%
7.2.28 10.000 0.000249 +186%
7.2.27 10.000 0.000377 +281%
7.2.26 10.000 0.000336 +251%
7.2.25 10.000 0.000326 +243%
7.2.24 10.000 0.000276 +206%
7.2.22 10.000 0.000243 +181%
7.2.21 10.000 0.000244 +182%
7.1.33 10.000 0.000427 +319%
7.1.32 10.000 0.000340 +254%
7.1.31 10.000 0.000281 +210%
7.1.0 10.000 0.001521 +1136%
7.0.33 10.000 0.000332 +248%
7.0.7 10.000 0.001234 +922%
5.6.40 10.000 0.000864 +646%
5.6.22 10.000 0.002827 +2112%
5.5.36 10.000 0.003057 +2283%
5.4.45 10.000 0.002989 +2233%
5.3.29 10.000 0.003976 +2970%