Create a camelCase string using preg_replace_callback
<?php
$this->start($loop);
for ($i = 0; $i < $this->loop; ++$i) {
$value = preg_replace_callback('/[^a-zA-Z0-9]+([a-zA-Z0-9])/', function($matches) {
return ucfirst($matches[1]);
}, strtolower('id_company_user_'.$i));
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.189369 | +226% |
8.3.10 | 100.000 | 0.162350 | +219% |
8.3.9 | 100.000 | 0.152724 | +220% |
7.3.33 | 100.000 | 0.116327 | +210% |
7.3.31 | 100.000 | 0.107101 | +202% |
7.3.30 | 100.000 | 0.105450 | +208% |
7.3.29 | 100.000 | 0.114122 | +207% |
7.3.28 | 100.000 | 0.106573 | +193% |
7.3.27 | 100.000 | 0.135376 | +202% |
7.3.24 | 100.000 | 0.111159 | +196% |
7.3.23 | 100.000 | 0.114258 | +212% |
7.3.22 | 100.000 | 0.119427 | +214% |
7.3.19 | 100.000 | 0.114196 | +207% |
7.3.18 | 100.000 | 0.106557 | +188% |
7.3.17 | 100.000 | 0.104305 | +198% |
7.3.16 | 100.000 | 0.106789 | +201% |
7.3.15 | 100.000 | 0.102516 | +188% |
7.3.14 | 100.000 | 0.109212 | +195% |
7.3.13 | 100.000 | 0.107292 | +197% |
7.3.12 | 100.000 | 0.101196 | +199% |
7.3.11 | 100.000 | 0.122864 | +209% |
7.3.9 | 100.000 | 0.152998 | +210% |
7.3.8 | 100.000 | 0.140229 | +202% |
7.2.29 | 100.000 | 0.121847 | +230% |
8.3.13 | 10.000 | 0.021776 | +231% |
7.2.34 | 100.000 | 0.135396 | +226% |
7.2.33 | 100.000 | 0.130618 | +228% |
7.2.31 | 100.000 | 0.132207 | +232% |
7.2.30 | 100.000 | 0.120146 | +216% |
8.3.10 | 10.000 | 0.020440 | +198% |
7.2.28 | 100.000 | 0.120903 | +228% |
7.2.27 | 100.000 | 0.126652 | +216% |
7.2.26 | 100.000 | 0.124255 | +213% |
7.2.25 | 100.000 | 0.122117 | +228% |
7.2.24 | 100.000 | 0.148190 | +225% |
7.2.22 | 100.000 | 0.173424 | +220% |
7.2.21 | 100.000 | 0.174230 | +222% |
7.1.33 | 100.000 | 0.160424 | +247% |
7.1.32 | 100.000 | 0.236950 | +268% |
7.1.31 | 100.000 | 0.212493 | +255% |
7.1.0 | 100.000 | 1.226330 | +338% |
7.0.33 | 100.000 | 0.165185 | +252% |
7.0.7 | 100.000 | 1.211477 | +280% |
5.6.40 | 100.000 | 0.449093 | +274% |
5.6.22 | 100.000 | 2.286997 | +300% |
5.5.36 | 100.000 | 2.486492 | +299% |
5.4.45 | 100.000 | 2.400155 | +287% |
5.3.29 | 100.000 | 2.685085 | +261% |
8.3.9 | 10.000 | 0.019652 | +218% |
8.0.30 | 100.000 | 0.135223 | +218% |
8.0.29 | 100.000 | 0.106089 | +239% |
8.0.28 | 100.000 | 0.101829 | +223% |
8.0.27 | 100.000 | 0.107089 | +205% |
8.0.26 | 100.000 | 0.107188 | +205% |
8.0.25 | 100.000 | 0.110327 | +212% |
8.0.24 | 100.000 | 0.100135 | +206% |
8.0.23 | 100.000 | 0.108724 | +219% |
8.0.20 | 10.000 | 0.013373 | +222% |
8.0.20 | 100.000 | 0.101996 | +208% |
8.0.19 | 10.000 | 0.015510 | +193% |
8.0.19 | 100.000 | 0.104095 | +181% |
8.0.17 | 10.000 | 0.017395 | +223% |
8.0.17 | 100.000 | 0.126732 | +208% |
8.0.16 | 10.000 | 0.018119 | +222% |
8.0.16 | 100.000 | 0.108744 | +203% |
8.0.14 | 10.000 | 0.018157 | +205% |
8.0.14 | 100.000 | 0.129806 | +211% |
8.0.11 | 100.000 | 0.108621 | +201% |
8.0.10 | 100.000 | 0.113258 | +189% |
8.0.9 | 100.000 | 0.106041 | +202% |
8.0.8 | 100.000 | 0.108400 | +196% |
8.0.7 | 100.000 | 0.109796 | +201% |
8.0.3 | 100.000 | 0.134483 | +200% |
8.0.2 | 100.000 | 0.155775 | +194% |
8.0.0 | 100.000 | 0.106516 | +189% |
7.4.33 | 100.000 | 0.118927 | +215% |
7.4.32 | 100.000 | 0.100097 | +197% |
7.4.30 | 100.000 | 0.103758 | +214% |
7.4.28 | 100.000 | 0.117104 | +208% |
7.4.27 | 100.000 | 0.112714 | +209% |
7.4.24 | 100.000 | 0.106684 | +200% |
7.4.23 | 100.000 | 0.109544 | +201% |
7.4.22 | 100.000 | 0.104234 | +211% |
8.0.11 | 10.000 | 0.017149 | +195% |
8.0.10 | 10.000 | 0.016632 | +187% |
8.0.0 | 10.000 | 0.015461 | +195% |
7.4.29 | 100.000 | 0.102923 | +184% |
7.4.21 | 10.000 | 0.019791 | +248% |
7.4.21 | 100.000 | 0.101914 | +197% |
7.4.20 | 10.000 | 0.019334 | +216% |
7.4.20 | 100.000 | 0.109802 | +205% |
7.4.16 | 100.000 | 0.129775 | +196% |
7.4.15 | 100.000 | 0.160671 | +195% |
7.4.33 | 10.000 | 0.016208 | +230% |
7.4.32 | 10.000 | 0.015609 | +240% |
7.4.30 | 10.000 | 0.013333 | +208% |
7.4.29 | 10.000 | 0.018697 | +228% |
7.4.24 | 10.000 | 0.016808 | +207% |
7.4.23 | 10.000 | 0.018447 | +250% |
7.4.22 | 10.000 | 0.015100 | +182% |
7.4.13 | 100.000 | 0.110807 | +212% |
7.4.12 | 100.000 | 0.125892 | +221% |
7.4.11 | 100.000 | 0.114882 | +199% |
7.4.10 | 100.000 | 0.110877 | +211% |
8.0.2 | 10.000 | 0.025386 | +190% |
7.4.0 | 100.000 | 0.131184 | +202% |
8.0.30 | 10.000 | 0.017896 | +208% |
8.0.29 | 10.000 | 0.011799 | +248% |
8.0.28 | 10.000 | 0.013181 | +227% |
8.0.27 | 10.000 | 0.016093 | +194% |
8.0.26 | 10.000 | 0.014157 | +208% |
8.0.25 | 10.000 | 0.015039 | +200% |
8.0.24 | 10.000 | 0.013994 | +204% |
8.0.23 | 10.000 | 0.011575 | +218% |
8.0.9 | 10.000 | 0.017537 | +210% |
8.0.8 | 10.000 | 0.019955 | +208% |
8.0.7 | 10.000 | 0.019255 | +204% |
8.0.3 | 10.000 | 0.020982 | +196% |
7.4.28 | 10.000 | 0.018869 | +221% |
7.4.27 | 10.000 | 0.018088 | +215% |
7.4.16 | 10.000 | 0.021011 | +199% |
7.4.15 | 10.000 | 0.025232 | +195% |
7.4.13 | 10.000 | 0.016748 | +206% |
7.4.12 | 10.000 | 0.016058 | +219% |
7.4.11 | 10.000 | 0.017552 | +198% |
7.4.10 | 10.000 | 0.015532 | +190% |
7.4.7 | 10.000 | 0.017165 | +205% |
7.4.7 | 100.000 | 0.111393 | +191% |
7.4.6 | 10.000 | 0.016453 | +215% |
7.4.6 | 100.000 | 0.101530 | +195% |
7.4.5 | 10.000 | 0.016392 | +211% |
7.4.5 | 100.000 | 0.103813 | +192% |
7.4.4 | 10.000 | 0.015943 | +240% |
7.4.4 | 100.000 | 0.097083 | +184% |
7.4.3 | 10.000 | 0.017792 | +223% |
7.4.3 | 100.000 | 0.099620 | +188% |
7.4.1 | 100.000 | 0.103659 | +195% |
7.4.2 | 10.000 | 0.018850 | +198% |
7.4.2 | 100.000 | 0.114302 | +203% |
7.4.1 | 10.000 | 0.020105 | +222% |
7.4.0 | 10.000 | 0.015711 | +209% |
7.3.33 | 10.000 | 0.016233 | +217% |
7.3.31 | 10.000 | 0.017430 | +202% |
7.3.30 | 10.000 | 0.017506 | +210% |
7.3.29 | 10.000 | 0.017170 | +228% |
7.3.28 | 10.000 | 0.019012 | +197% |
7.3.27 | 10.000 | 0.021729 | +198% |
7.3.24 | 10.000 | 0.016758 | +213% |
7.3.23 | 10.000 | 0.017700 | +194% |
7.3.22 | 10.000 | 0.017456 | +232% |
7.3.19 | 10.000 | 0.018550 | +207% |
7.3.18 | 10.000 | 0.017272 | +206% |
7.3.17 | 10.000 | 0.020300 | +229% |
7.3.16 | 10.000 | 0.017963 | +235% |
7.3.15 | 10.000 | 0.017514 | +184% |
7.3.14 | 10.000 | 0.020277 | +200% |
7.3.13 | 10.000 | 0.020605 | +215% |
7.3.12 | 10.000 | 0.018679 | +231% |
7.3.11 | 10.000 | 0.015365 | +213% |
7.3.9 | 10.000 | 0.016244 | +194% |
7.3.8 | 10.000 | 0.015016 | +202% |
7.2.34 | 10.000 | 0.019247 | +229% |
7.2.33 | 10.000 | 0.018028 | +194% |
7.2.31 | 10.000 | 0.019809 | +220% |
7.2.30 | 10.000 | 0.021463 | +279% |
7.2.29 | 10.000 | 0.019596 | +222% |
7.2.28 | 10.000 | 0.021822 | +248% |
7.2.27 | 10.000 | 0.022337 | +218% |
7.2.26 | 10.000 | 0.022287 | +227% |
7.2.25 | 10.000 | 0.020001 | +256% |
7.2.24 | 10.000 | 0.018137 | +219% |
7.2.22 | 10.000 | 0.019789 | +219% |
7.2.21 | 10.000 | 0.019633 | +228% |
7.1.33 | 10.000 | 0.021460 | +229% |
7.1.32 | 10.000 | 0.023300 | +232% |
7.1.31 | 10.000 | 0.022203 | +238% |
7.1.0 | 10.000 | 0.125724 | +334% |
7.0.33 | 10.000 | 0.021218 | +235% |
7.0.7 | 10.000 | 0.124086 | +279% |
5.6.40 | 10.000 | 0.050762 | +256% |
5.6.22 | 10.000 | 0.232962 | +298% |
5.5.36 | 10.000 | 0.254688 | +294% |
5.4.45 | 10.000 | 0.245559 | +283% |
5.3.29 | 10.000 | 0.271186 | +256% |
Create a camelCase string using lcfirst/str_replace/uc_words
<?php
$this->start($loop);
for ($i = 0; $i < $this->loop; ++$i) {
$value = lcfirst(str_replace(' ', '', ucwords(str_replace(array('-', '_'), ' ', 'id_company_user_'.$i))));
}
return $this->end();
PHP | Loops | Seconds | Percent |
---|---|---|---|
8.3.13 | 100.000 | 0.083788 | 100% |
8.3.10 | 100.000 | 0.074202 | 100% |
8.3.9 | 100.000 | 0.069476 | 100% |
7.3.33 | 100.000 | 0.055346 | 100% |
7.3.31 | 100.000 | 0.053096 | 100% |
7.3.30 | 100.000 | 0.050604 | 100% |
7.3.29 | 100.000 | 0.055082 | 100% |
7.3.28 | 100.000 | 0.055243 | 100% |
7.3.27 | 100.000 | 0.067033 | 100% |
7.3.24 | 100.000 | 0.056781 | 100% |
7.3.23 | 100.000 | 0.053834 | 100% |
7.3.22 | 100.000 | 0.055845 | 100% |
7.3.19 | 100.000 | 0.055048 | 100% |
7.3.18 | 100.000 | 0.056698 | 100% |
7.3.17 | 100.000 | 0.052583 | 100% |
7.3.16 | 100.000 | 0.053141 | 100% |
7.3.15 | 100.000 | 0.054441 | 100% |
7.3.14 | 100.000 | 0.056069 | 100% |
7.3.13 | 100.000 | 0.054361 | 100% |
7.3.12 | 100.000 | 0.050813 | 100% |
7.3.11 | 100.000 | 0.058835 | 100% |
7.3.9 | 100.000 | 0.072798 | 100% |
7.3.8 | 100.000 | 0.069312 | 100% |
7.2.29 | 100.000 | 0.052889 | 100% |
8.3.13 | 10.000 | 0.009423 | 100% |
7.2.34 | 100.000 | 0.059946 | 100% |
7.2.33 | 100.000 | 0.057240 | 100% |
7.2.31 | 100.000 | 0.056933 | 100% |
7.2.30 | 100.000 | 0.055588 | 100% |
8.3.10 | 10.000 | 0.010346 | 100% |
7.2.28 | 100.000 | 0.053095 | 100% |
7.2.27 | 100.000 | 0.058709 | 100% |
7.2.26 | 100.000 | 0.058407 | 100% |
7.2.25 | 100.000 | 0.053450 | 100% |
7.2.24 | 100.000 | 0.065770 | 100% |
7.2.22 | 100.000 | 0.078752 | 100% |
7.2.21 | 100.000 | 0.078341 | 100% |
7.1.33 | 100.000 | 0.064975 | 100% |
7.1.32 | 100.000 | 0.088535 | 100% |
7.1.31 | 100.000 | 0.083475 | 100% |
7.1.0 | 100.000 | 0.362918 | 100% |
7.0.33 | 100.000 | 0.065430 | 100% |
7.0.7 | 100.000 | 0.433053 | 100% |
5.6.40 | 100.000 | 0.163806 | 100% |
5.6.22 | 100.000 | 0.761651 | 100% |
5.5.36 | 100.000 | 0.831420 | 100% |
5.4.45 | 100.000 | 0.835124 | 100% |
5.3.29 | 100.000 | 1.030326 | 100% |
8.3.9 | 10.000 | 0.009025 | 100% |
8.0.30 | 100.000 | 0.062141 | 100% |
8.0.29 | 100.000 | 0.044447 | 100% |
8.0.28 | 100.000 | 0.045657 | 100% |
8.0.27 | 100.000 | 0.052201 | 100% |
8.0.26 | 100.000 | 0.052374 | 100% |
8.0.25 | 100.000 | 0.051994 | 100% |
8.0.24 | 100.000 | 0.048723 | 100% |
8.0.23 | 100.000 | 0.049705 | 100% |
8.0.20 | 10.000 | 0.006029 | 100% |
8.0.20 | 100.000 | 0.048988 | 100% |
8.0.19 | 10.000 | 0.008039 | 100% |
8.0.19 | 100.000 | 0.057398 | 100% |
8.0.17 | 10.000 | 0.007805 | 100% |
8.0.17 | 100.000 | 0.061052 | 100% |
8.0.16 | 10.000 | 0.008148 | 100% |
8.0.16 | 100.000 | 0.053624 | 100% |
8.0.14 | 10.000 | 0.008844 | 100% |
8.0.14 | 100.000 | 0.061609 | 100% |
8.0.11 | 100.000 | 0.054126 | 100% |
8.0.10 | 100.000 | 0.059824 | 100% |
8.0.9 | 100.000 | 0.052549 | 100% |
8.0.8 | 100.000 | 0.055221 | 100% |
8.0.7 | 100.000 | 0.054521 | 100% |
8.0.3 | 100.000 | 0.067318 | 100% |
8.0.2 | 100.000 | 0.080450 | 100% |
8.0.0 | 100.000 | 0.056474 | 100% |
7.4.33 | 100.000 | 0.055396 | 100% |
7.4.32 | 100.000 | 0.050820 | 100% |
7.4.30 | 100.000 | 0.048386 | 100% |
7.4.28 | 100.000 | 0.056366 | 100% |
7.4.27 | 100.000 | 0.053970 | 100% |
7.4.24 | 100.000 | 0.053243 | 100% |
7.4.23 | 100.000 | 0.054439 | 100% |
7.4.22 | 100.000 | 0.049424 | 100% |
8.0.11 | 10.000 | 0.008774 | 100% |
8.0.10 | 10.000 | 0.008875 | 100% |
8.0.0 | 10.000 | 0.007916 | 100% |
7.4.29 | 100.000 | 0.056052 | 100% |
7.4.21 | 10.000 | 0.007988 | 100% |
7.4.21 | 100.000 | 0.051697 | 100% |
7.4.20 | 10.000 | 0.008956 | 100% |
7.4.20 | 100.000 | 0.053469 | 100% |
7.4.16 | 100.000 | 0.066078 | 100% |
7.4.15 | 100.000 | 0.082365 | 100% |
7.4.33 | 10.000 | 0.007040 | 100% |
7.4.32 | 10.000 | 0.006495 | 100% |
7.4.30 | 10.000 | 0.006408 | 100% |
7.4.29 | 10.000 | 0.008210 | 100% |
7.4.24 | 10.000 | 0.008115 | 100% |
7.4.23 | 10.000 | 0.007384 | 100% |
7.4.22 | 10.000 | 0.008291 | 100% |
7.4.13 | 100.000 | 0.052254 | 100% |
7.4.12 | 100.000 | 0.056930 | 100% |
7.4.11 | 100.000 | 0.057630 | 100% |
7.4.10 | 100.000 | 0.052495 | 100% |
8.0.2 | 10.000 | 0.013338 | 100% |
7.4.0 | 100.000 | 0.064988 | 100% |
8.0.30 | 10.000 | 0.008618 | 100% |
8.0.29 | 10.000 | 0.004758 | 100% |
8.0.28 | 10.000 | 0.005798 | 100% |
8.0.27 | 10.000 | 0.008299 | 100% |
8.0.26 | 10.000 | 0.006800 | 100% |
8.0.25 | 10.000 | 0.007520 | 100% |
8.0.24 | 10.000 | 0.006867 | 100% |
8.0.23 | 10.000 | 0.005300 | 100% |
8.0.9 | 10.000 | 0.008338 | 100% |
8.0.8 | 10.000 | 0.009611 | 100% |
8.0.7 | 10.000 | 0.009450 | 100% |
8.0.3 | 10.000 | 0.010682 | 100% |
7.4.28 | 10.000 | 0.008527 | 100% |
7.4.27 | 10.000 | 0.008417 | 100% |
7.4.16 | 10.000 | 0.010569 | 100% |
7.4.15 | 10.000 | 0.012922 | 100% |
7.4.13 | 10.000 | 0.008142 | 100% |
7.4.12 | 10.000 | 0.007343 | 100% |
7.4.11 | 10.000 | 0.008844 | 100% |
7.4.10 | 10.000 | 0.008187 | 100% |
7.4.7 | 10.000 | 0.008386 | 100% |
7.4.7 | 100.000 | 0.058410 | 100% |
7.4.6 | 10.000 | 0.007654 | 100% |
7.4.6 | 100.000 | 0.052037 | 100% |
7.4.5 | 10.000 | 0.007759 | 100% |
7.4.5 | 100.000 | 0.054206 | 100% |
7.4.4 | 10.000 | 0.006647 | 100% |
7.4.4 | 100.000 | 0.052875 | 100% |
7.4.3 | 10.000 | 0.007970 | 100% |
7.4.3 | 100.000 | 0.053055 | 100% |
7.4.1 | 100.000 | 0.053199 | 100% |
7.4.2 | 10.000 | 0.009517 | 100% |
7.4.2 | 100.000 | 0.056301 | 100% |
7.4.1 | 10.000 | 0.009066 | 100% |
7.4.0 | 10.000 | 0.007526 | 100% |
7.3.33 | 10.000 | 0.007477 | 100% |
7.3.31 | 10.000 | 0.008643 | 100% |
7.3.30 | 10.000 | 0.008339 | 100% |
7.3.29 | 10.000 | 0.007520 | 100% |
7.3.28 | 10.000 | 0.009638 | 100% |
7.3.27 | 10.000 | 0.010989 | 100% |
7.3.24 | 10.000 | 0.007870 | 100% |
7.3.23 | 10.000 | 0.009143 | 100% |
7.3.22 | 10.000 | 0.007514 | 100% |
7.3.19 | 10.000 | 0.008951 | 100% |
7.3.18 | 10.000 | 0.008401 | 100% |
7.3.17 | 10.000 | 0.008849 | 100% |
7.3.16 | 10.000 | 0.007660 | 100% |
7.3.15 | 10.000 | 0.009527 | 100% |
7.3.14 | 10.000 | 0.010135 | 100% |
7.3.13 | 10.000 | 0.009572 | 100% |
7.3.12 | 10.000 | 0.008092 | 100% |
7.3.11 | 10.000 | 0.007203 | 100% |
7.3.9 | 10.000 | 0.008392 | 100% |
7.3.8 | 10.000 | 0.007425 | 100% |
7.2.34 | 10.000 | 0.008404 | 100% |
7.2.33 | 10.000 | 0.009292 | 100% |
7.2.31 | 10.000 | 0.009002 | 100% |
7.2.30 | 10.000 | 0.007693 | 100% |
7.2.29 | 10.000 | 0.008834 | 100% |
7.2.28 | 10.000 | 0.008812 | 100% |
7.2.27 | 10.000 | 0.010256 | 100% |
7.2.26 | 10.000 | 0.009806 | 100% |
7.2.25 | 10.000 | 0.007809 | 100% |
7.2.24 | 10.000 | 0.008294 | 100% |
7.2.22 | 10.000 | 0.009018 | 100% |
7.2.21 | 10.000 | 0.008601 | 100% |
7.1.33 | 10.000 | 0.009377 | 100% |
7.1.32 | 10.000 | 0.010064 | 100% |
7.1.31 | 10.000 | 0.009318 | 100% |
7.1.0 | 10.000 | 0.037602 | 100% |
7.0.33 | 10.000 | 0.009045 | 100% |
7.0.7 | 10.000 | 0.044530 | 100% |
5.6.40 | 10.000 | 0.019833 | 100% |
5.6.22 | 10.000 | 0.078209 | 100% |
5.5.36 | 10.000 | 0.086770 | 100% |
5.4.45 | 10.000 | 0.086729 | 100% |
5.3.29 | 10.000 | 0.105730 | 100% |