SwitchTest

Create a switch with multiple case conditions


<?php 

$this
->start($loop);

for (
$i 0$i $this->loop; ++$i) {
    switch (
$i) {
        case 
'a':
            
$value 'a';
            break;

        case 
'b':
            
$value 'b';
            break;

        case 
3:
            
$value 3;
            break;

        default:
            
$value $i;
            break;
    }
}

return 
$this->end();
PHP Loops Seconds Percent
8.3.13 100.000 0.029756 +363%
8.3.10 100.000 0.024626 +300%
8.3.9 100.000 0.026160 +319%
7.3.33 100.000 0.010785 +131%
7.3.31 100.000 0.010645 +130%
7.3.30 100.000 0.011258 +137%
7.3.29 100.000 0.009991 +122%
7.3.28 100.000 0.012477 +152%
7.3.27 100.000 0.013692 +167%
7.3.24 100.000 0.010177 +124%
7.3.23 100.000 0.009574 +117%
7.3.22 100.000 0.009782 +119%
7.3.19 100.000 0.010576 +129%
7.3.18 100.000 0.010277 +125%
7.3.17 100.000 0.010547 +129%
7.3.16 100.000 0.010859 +132%
7.3.15 100.000 0.011460 +140%
7.3.14 100.000 0.012866 +157%
7.3.13 100.000 0.013265 +162%
7.3.12 100.000 0.011418 +139%
7.3.11 100.000 0.009173 +112%
7.3.9 100.000 0.010395 +127%
7.3.8 100.000 0.009443 +115%
7.2.29 100.000 0.009223 +112%
8.3.13 10.000 0.003902 +478%
7.2.34 100.000 0.010745 +131%
7.2.33 100.000 0.009095 +111%
7.2.31 100.000 0.010390 +127%
7.2.30 100.000 0.009574 +117%
8.3.10 10.000 0.003490 +428%
7.2.28 100.000 0.010414 +127%
7.2.27 100.000 0.012488 +152%
7.2.26 100.000 0.011784 +144%
7.2.25 100.000 0.011165 +136%
7.2.24 100.000 0.008202 100%
7.2.22 100.000 0.010145 +124%
7.2.21 100.000 0.008396 +102%
7.1.33 100.000 0.012226 +149%
7.1.32 100.000 0.011203 +137%
7.1.31 100.000 0.009432 +115%
7.1.0 100.000 0.052569 +641%
7.0.33 100.000 0.011942 +146%
7.0.7 100.000 0.051678 +630%
5.6.40 100.000 0.022204 +271%
5.6.22 100.000 0.085391 +1041%
5.5.36 100.000 0.087119 +1062%
5.4.45 100.000 0.087553 +1067%
5.3.29 100.000 0.095187 +1160%
8.3.9 10.000 0.003688 +452%
8.0.30 100.000 0.018907 +230%
8.0.29 100.000 0.012971 +158%
8.0.28 100.000 0.013914 +170%
8.0.27 100.000 0.016089 +196%
8.0.26 100.000 0.015535 +189%
8.0.25 100.000 0.018204 +222%
8.0.24 100.000 0.017171 +209%
8.0.23 100.000 0.020534 +250%
8.0.20 10.000 0.001662 +204%
8.0.20 100.000 0.016018 +195%
8.0.19 10.000 0.001795 +220%
8.0.19 100.000 0.019501 +238%
8.0.17 10.000 0.002035 +249%
8.0.17 100.000 0.019339 +236%
8.0.16 10.000 0.001902 +233%
8.0.16 100.000 0.018362 +224%
8.0.14 10.000 0.002265 +277%
8.0.14 100.000 0.018303 +223%
8.0.11 100.000 0.017888 +218%
8.0.10 100.000 0.017568 +214%
8.0.9 100.000 0.017734 +216%
8.0.8 100.000 0.017961 +219%
8.0.7 100.000 0.018040 +220%
8.0.3 100.000 0.022564 +275%
8.0.2 100.000 0.025135 +306%
8.0.0 100.000 0.016981 +207%
7.4.33 100.000 0.010502 +128%
7.4.32 100.000 0.009996 +122%
7.4.30 100.000 0.008891 +108%
7.4.28 100.000 0.010743 +131%
7.4.27 100.000 0.010961 +134%
7.4.24 100.000 0.009917 +121%
7.4.23 100.000 0.009725 +119%
7.4.22 100.000 0.010133 +124%
8.0.11 10.000 0.001918 +235%
8.0.10 10.000 0.001972 +242%
8.0.0 10.000 0.001943 +238%
7.4.29 100.000 0.013127 +160%
7.4.21 10.000 0.001194 +146%
7.4.21 100.000 0.013392 +163%
7.4.20 10.000 0.001281 +157%
7.4.20 100.000 0.010855 +132%
7.4.16 100.000 0.014023 +171%
7.4.15 100.000 0.013699 +167%
7.4.33 10.000 0.001254 +154%
7.4.32 10.000 0.001056 +129%
7.4.30 10.000 0.000914 +112%
7.4.29 10.000 0.001190 +146%
7.4.24 10.000 0.001202 +147%
7.4.23 10.000 0.001126 +138%
7.4.22 10.000 0.001085 +133%
7.4.13 100.000 0.010589 +129%
7.4.12 100.000 0.010582 +129%
7.4.11 100.000 0.012363 +151%
7.4.10 100.000 0.009532 +116%
8.0.2 10.000 0.002810 +344%
7.4.0 100.000 0.010664 +130%
8.0.30 10.000 0.002291 +281%
8.0.29 10.000 0.001349 +165%
8.0.28 10.000 0.001474 +181%
8.0.27 10.000 0.001849 +226%
8.0.26 10.000 0.001605 +197%
8.0.25 10.000 0.001914 +234%
8.0.24 10.000 0.001958 +240%
8.0.23 10.000 0.001838 +225%
8.0.9 10.000 0.001583 +194%
8.0.8 10.000 0.002136 +262%
8.0.7 10.000 0.002306 +282%
8.0.3 10.000 0.002710 +332%
7.4.28 10.000 0.000971 +119%
7.4.27 10.000 0.001187 +145%
7.4.16 10.000 0.001481 +181%
7.4.15 10.000 0.001396 +171%
7.4.13 10.000 0.001149 +141%
7.4.12 10.000 0.000975 +119%
7.4.11 10.000 0.001143 +140%
7.4.10 10.000 0.001217 +149%
7.4.7 10.000 0.001013 +124%
7.4.7 100.000 0.010296 +126%
7.4.6 10.000 0.001158 +142%
7.4.6 100.000 0.010207 +124%
7.4.5 10.000 0.001009 +124%
7.4.5 100.000 0.011849 +144%
7.4.4 10.000 0.000923 +113%
7.4.4 100.000 0.011738 +143%
7.4.3 10.000 0.000936 +115%
7.4.3 100.000 0.012284 +150%
7.4.1 100.000 0.013668 +167%
7.4.2 10.000 0.001437 +176%
7.4.2 100.000 0.013307 +162%
7.4.1 10.000 0.001130 +138%
7.4.0 10.000 0.001076 +132%
7.3.33 10.000 0.001206 +148%
7.3.31 10.000 0.001194 +146%
7.3.30 10.000 0.001009 +124%
7.3.29 10.000 0.001124 +138%
7.3.28 10.000 0.001126 +138%
7.3.27 10.000 0.001371 +168%
7.3.24 10.000 0.001107 +136%
7.3.23 10.000 0.001057 +130%
7.3.22 10.000 0.001063 +130%
7.3.19 10.000 0.001174 +144%
7.3.18 10.000 0.000960 +118%
7.3.17 10.000 0.001029 +126%
7.3.16 10.000 0.001155 +142%
7.3.15 10.000 0.001236 +151%
7.3.14 10.000 0.001328 +163%
7.3.13 10.000 0.001446 +177%
7.3.12 10.000 0.001076 +132%
7.3.11 10.000 0.000918 +112%
7.3.9 10.000 0.000993 +122%
7.3.8 10.000 0.000968 +119%
7.2.34 10.000 0.001139 +140%
7.2.33 10.000 0.001025 +126%
7.2.31 10.000 0.001098 +134%
7.2.30 10.000 0.001007 +123%
7.2.29 10.000 0.000960 +118%
7.2.28 10.000 0.001129 +138%
7.2.27 10.000 0.001393 +171%
7.2.26 10.000 0.001062 +130%
7.2.25 10.000 0.000946 +116%
7.2.24 10.000 0.000816 100%
7.2.22 10.000 0.000949 +116%
7.2.21 10.000 0.000866 +106%
7.1.33 10.000 0.001361 +167%
7.1.32 10.000 0.001164 +143%
7.1.31 10.000 0.000998 +122%
7.1.0 10.000 0.005663 +694%
7.0.33 10.000 0.001306 +160%
7.0.7 10.000 0.005400 +661%
5.6.40 10.000 0.002662 +326%
5.6.22 10.000 0.008874 +1087%
5.5.36 10.000 0.009035 +1107%
5.4.45 10.000 0.009289 +1138%
5.3.29 10.000 0.009965 +1221%