Encode an array as string using json_encode
<?php
$values = $this->getRangeStrings(100);
$this->start($loop);
for ($i = 0; $i < $this->loop; ++$i) {
$value = json_encode($values);
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.532625 | +195% |
8.3.10 | 100.000 | 0.420342 | +154% |
8.3.9 | 100.000 | 0.414238 | +151% |
7.3.33 | 100.000 | 0.329042 | +120% |
7.3.31 | 100.000 | 0.306450 | +112% |
7.3.30 | 100.000 | 0.305190 | +112% |
7.3.29 | 100.000 | 0.316495 | +116% |
7.3.28 | 100.000 | 0.322982 | +118% |
7.3.27 | 100.000 | 0.391370 | +143% |
7.3.24 | 100.000 | 0.328007 | +120% |
7.3.23 | 100.000 | 0.351764 | +129% |
7.3.22 | 100.000 | 0.335090 | +123% |
7.3.19 | 100.000 | 0.346394 | +127% |
7.3.18 | 100.000 | 0.303722 | +111% |
7.3.17 | 100.000 | 0.321654 | +118% |
7.3.16 | 100.000 | 0.305968 | +112% |
7.3.15 | 100.000 | 0.299479 | +109% |
7.3.14 | 100.000 | 0.310702 | +114% |
7.3.13 | 100.000 | 0.304038 | +111% |
7.3.12 | 100.000 | 0.288567 | +106% |
7.3.11 | 100.000 | 0.403550 | +148% |
7.3.9 | 100.000 | 0.473823 | +173% |
7.3.8 | 100.000 | 0.462815 | +169% |
7.2.29 | 100.000 | 0.377880 | +138% |
8.3.13 | 10.000 | 0.057747 | +190% |
7.2.34 | 100.000 | 0.396490 | +145% |
7.2.33 | 100.000 | 0.410474 | +150% |
7.2.31 | 100.000 | 0.396774 | +145% |
7.2.30 | 100.000 | 0.396616 | +145% |
8.3.10 | 10.000 | 0.050505 | +166% |
7.2.28 | 100.000 | 0.362933 | +133% |
7.2.27 | 100.000 | 0.389992 | +143% |
7.2.26 | 100.000 | 0.379624 | +139% |
7.2.25 | 100.000 | 0.346954 | +127% |
7.2.24 | 100.000 | 0.457601 | +167% |
7.2.22 | 100.000 | 0.530141 | +194% |
7.2.21 | 100.000 | 0.514759 | +188% |
7.1.33 | 100.000 | 0.446232 | +163% |
7.1.32 | 100.000 | 0.730668 | +267% |
7.1.31 | 100.000 | 0.689721 | +252% |
7.1.0 | 100.000 | 2.918669 | +1067% |
7.0.33 | 100.000 | 0.420493 | +154% |
7.0.7 | 100.000 | 2.978134 | +1089% |
5.6.40 | 100.000 | 1.382671 | +506% |
5.6.22 | 100.000 | 6.295501 | +2302% |
5.5.36 | 100.000 | 6.520657 | +2384% |
5.4.45 | 100.000 | 6.419174 | +2347% |
5.3.29 | 100.000 | 6.293242 | +2301% |
8.3.9 | 10.000 | 0.049226 | +162% |
8.0.30 | 100.000 | 0.362480 | +133% |
8.0.29 | 100.000 | 0.299262 | +109% |
8.0.28 | 100.000 | 0.278709 | +102% |
8.0.27 | 100.000 | 0.313677 | +115% |
8.0.26 | 100.000 | 0.324926 | +119% |
8.0.25 | 100.000 | 0.282228 | +103% |
8.0.24 | 100.000 | 0.280427 | +103% |
8.0.23 | 100.000 | 0.281362 | +103% |
8.0.20 | 10.000 | 0.032180 | +106% |
8.0.20 | 100.000 | 0.288045 | +105% |
8.0.19 | 10.000 | 0.034408 | +113% |
8.0.19 | 100.000 | 0.273505 | 100% |
8.0.17 | 10.000 | 0.038368 | +126% |
8.0.17 | 100.000 | 0.305177 | +112% |
8.0.16 | 10.000 | 0.038727 | +128% |
8.0.16 | 100.000 | 0.315758 | +115% |
8.0.14 | 10.000 | 0.040685 | +134% |
8.0.14 | 100.000 | 0.334077 | +122% |
8.0.11 | 100.000 | 0.308921 | +113% |
8.0.10 | 100.000 | 0.296922 | +109% |
8.0.9 | 100.000 | 0.356465 | +130% |
8.0.8 | 100.000 | 0.304732 | +111% |
8.0.7 | 100.000 | 0.305815 | +112% |
8.0.3 | 100.000 | 0.342860 | +125% |
8.0.2 | 100.000 | 0.451790 | +165% |
8.0.0 | 100.000 | 0.283844 | +104% |
7.4.33 | 100.000 | 0.336765 | +123% |
7.4.32 | 100.000 | 0.282223 | +103% |
7.4.30 | 100.000 | 0.286799 | +105% |
7.4.28 | 100.000 | 0.317545 | +116% |
7.4.27 | 100.000 | 0.320413 | +117% |
7.4.24 | 100.000 | 0.310109 | +113% |
7.4.23 | 100.000 | 0.330267 | +121% |
7.4.22 | 100.000 | 0.305196 | +112% |
8.0.11 | 10.000 | 0.038394 | +126% |
8.0.10 | 10.000 | 0.038104 | +125% |
8.0.0 | 10.000 | 0.034400 | +113% |
7.4.29 | 100.000 | 0.284990 | +104% |
7.4.21 | 10.000 | 0.035406 | +117% |
7.4.21 | 100.000 | 0.305912 | +112% |
7.4.20 | 10.000 | 0.040233 | +133% |
7.4.20 | 100.000 | 0.314145 | +115% |
7.4.16 | 100.000 | 0.384652 | +141% |
7.4.15 | 100.000 | 0.447801 | +164% |
7.4.33 | 10.000 | 0.038645 | +127% |
7.4.32 | 10.000 | 0.032676 | +108% |
7.4.30 | 10.000 | 0.032857 | +108% |
7.4.29 | 10.000 | 0.036961 | +122% |
7.4.24 | 10.000 | 0.037085 | +122% |
7.4.23 | 10.000 | 0.038674 | +127% |
7.4.22 | 10.000 | 0.037447 | +123% |
7.4.13 | 100.000 | 0.320270 | +117% |
7.4.12 | 100.000 | 0.345535 | +126% |
7.4.11 | 100.000 | 0.322388 | +118% |
7.4.10 | 100.000 | 0.317457 | +116% |
8.0.2 | 10.000 | 0.056295 | +185% |
7.4.0 | 100.000 | 0.427142 | +156% |
8.0.30 | 10.000 | 0.042168 | +139% |
8.0.29 | 10.000 | 0.030718 | +101% |
8.0.28 | 10.000 | 0.030813 | +101% |
8.0.27 | 10.000 | 0.036233 | +119% |
8.0.26 | 10.000 | 0.034943 | +115% |
8.0.25 | 10.000 | 0.032950 | +109% |
8.0.24 | 10.000 | 0.030363 | 100% |
8.0.23 | 10.000 | 0.034973 | +115% |
8.0.9 | 10.000 | 0.035600 | +117% |
8.0.8 | 10.000 | 0.039525 | +130% |
8.0.7 | 10.000 | 0.040101 | +132% |
8.0.3 | 10.000 | 0.043898 | +145% |
7.4.28 | 10.000 | 0.039013 | +128% |
7.4.27 | 10.000 | 0.038711 | +127% |
7.4.16 | 10.000 | 0.047948 | +158% |
7.4.15 | 10.000 | 0.059939 | +197% |
7.4.13 | 10.000 | 0.037215 | +123% |
7.4.12 | 10.000 | 0.041042 | +135% |
7.4.11 | 10.000 | 0.039094 | +129% |
7.4.10 | 10.000 | 0.037671 | +124% |
7.4.7 | 10.000 | 0.038257 | +126% |
7.4.7 | 100.000 | 0.321035 | +117% |
7.4.6 | 10.000 | 0.037521 | +124% |
7.4.6 | 100.000 | 0.289108 | +106% |
7.4.5 | 10.000 | 0.039013 | +128% |
7.4.5 | 100.000 | 0.304169 | +111% |
7.4.4 | 10.000 | 0.036519 | +120% |
7.4.4 | 100.000 | 0.285593 | +104% |
7.4.3 | 10.000 | 0.037237 | +123% |
7.4.3 | 100.000 | 0.294917 | +108% |
7.4.1 | 100.000 | 0.292403 | +107% |
7.4.2 | 10.000 | 0.040552 | +134% |
7.4.2 | 100.000 | 0.303022 | +111% |
7.4.1 | 10.000 | 0.037172 | +122% |
7.4.0 | 10.000 | 0.043689 | +144% |
7.3.33 | 10.000 | 0.038327 | +126% |
7.3.31 | 10.000 | 0.038218 | +126% |
7.3.30 | 10.000 | 0.037240 | +123% |
7.3.29 | 10.000 | 0.039093 | +129% |
7.3.28 | 10.000 | 0.039828 | +131% |
7.3.27 | 10.000 | 0.050381 | +166% |
7.3.24 | 10.000 | 0.039307 | +129% |
7.3.23 | 10.000 | 0.042174 | +139% |
7.3.22 | 10.000 | 0.039178 | +129% |
7.3.19 | 10.000 | 0.041556 | +137% |
7.3.18 | 10.000 | 0.039670 | +131% |
7.3.17 | 10.000 | 0.037515 | +124% |
7.3.16 | 10.000 | 0.035840 | +118% |
7.3.15 | 10.000 | 0.036434 | +120% |
7.3.14 | 10.000 | 0.042112 | +139% |
7.3.13 | 10.000 | 0.041802 | +138% |
7.3.12 | 10.000 | 0.037400 | +123% |
7.3.11 | 10.000 | 0.041122 | +135% |
7.3.9 | 10.000 | 0.046203 | +152% |
7.3.8 | 10.000 | 0.046850 | +154% |
7.2.34 | 10.000 | 0.045908 | +151% |
7.2.33 | 10.000 | 0.047714 | +157% |
7.2.31 | 10.000 | 0.047561 | +157% |
7.2.30 | 10.000 | 0.047747 | +157% |
7.2.29 | 10.000 | 0.044798 | +148% |
7.2.28 | 10.000 | 0.044706 | +147% |
7.2.27 | 10.000 | 0.048978 | +161% |
7.2.26 | 10.000 | 0.046172 | +152% |
7.2.25 | 10.000 | 0.043514 | +143% |
7.2.24 | 10.000 | 0.043615 | +144% |
7.2.22 | 10.000 | 0.049776 | +164% |
7.2.21 | 10.000 | 0.051761 | +170% |
7.1.33 | 10.000 | 0.050944 | +168% |
7.1.32 | 10.000 | 0.069172 | +228% |
7.1.31 | 10.000 | 0.069600 | +229% |
7.1.0 | 10.000 | 0.296529 | +977% |
7.0.33 | 10.000 | 0.047820 | +157% |
7.0.7 | 10.000 | 0.306308 | +1009% |
5.6.40 | 10.000 | 0.147180 | +485% |
5.6.22 | 10.000 | 0.624431 | +2057% |
5.5.36 | 10.000 | 0.662242 | +2181% |
5.4.45 | 10.000 | 0.624131 | +2056% |
5.3.29 | 10.000 | 0.630332 | +2076% |