3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calendar = array (January, February, March, April, May, June, July, August, September, October, November, December); while($e < sizeof($calendar)) { $k++; $days = 30; $days2 = 31; switch ($calendar[$e]) { case $calendar[0]: echo "Month ",$k,": $calendar[$e] has $days days <br>"; break; case $calendar[1]: echo "Month $k: $calendar[$e] has 28 or 29 days <br>"; break; case $calendar[2]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; case $calendar[3]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[4]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[5]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[6]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; case $calendar[7]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[8]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[9]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; case $calendar[10]: echo "Month $k: $calendar[$e] has $days days <br>"; break; case $calendar[11]: echo "Month $k: $calendar[$e] has $days2 days <br>"; break; } $e++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 187
Branch analysis from position: 187
2 jumps found. (Code = 44) Position 1 = 190, Position 2 = 26
Branch analysis from position: 190
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 67
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 77
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 85
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 95
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 105
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 48, Position 2 = 115
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 51, Position 2 = 125
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 54, Position 2 = 135
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 145
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 155
Branch analysis from position: 60
2 jumps found. (Code = 44) Position 1 = 63, Position 2 = 165
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 66, Position 2 = 175
Branch analysis from position: 66
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
2 jumps found. (Code = 44) Position 1 = 190, Position 2 = 26
Branch analysis from position: 190
Branch analysis from position: 26
Branch analysis from position: 175
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 165
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 155
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 145
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 135
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 125
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 115
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 105
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 95
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 85
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
Branch analysis from position: 67
1 jumps found. (Code = 42) Position 1 = 185
Branch analysis from position: 185
filename:       /in/imGYQ
function name:  (null)
number of ops:  191
compiled vars:  !0 = $calendar, !1 = $k, !2 = $days, !3 = $days2, !4 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~5      'January'
          1        INIT_ARRAY                                       ~6      ~5
          2        FETCH_CONSTANT                                   ~7      'February'
          3        ADD_ARRAY_ELEMENT                                ~6      ~7
          4        FETCH_CONSTANT                                   ~8      'March'
          5        ADD_ARRAY_ELEMENT                                ~6      ~8
          6        FETCH_CONSTANT                                   ~9      'April'
          7        ADD_ARRAY_ELEMENT                                ~6      ~9
          8        FETCH_CONSTANT                                   ~10     'May'
          9        ADD_ARRAY_ELEMENT                                ~6      ~10
         10        FETCH_CONSTANT                                   ~11     'June'
         11        ADD_ARRAY_ELEMENT                                ~6      ~11
         12        FETCH_CONSTANT                                   ~12     'July'
         13        ADD_ARRAY_ELEMENT                                ~6      ~12
         14        FETCH_CONSTANT                                   ~13     'August'
         15        ADD_ARRAY_ELEMENT                                ~6      ~13
         16        FETCH_CONSTANT                                   ~14     'September'
         17        ADD_ARRAY_ELEMENT                                ~6      ~14
         18        FETCH_CONSTANT                                   ~15     'October'
         19        ADD_ARRAY_ELEMENT                                ~6      ~15
         20        FETCH_CONSTANT                                   ~16     'November'
         21        ADD_ARRAY_ELEMENT                                ~6      ~16
         22        FETCH_CONSTANT                                   ~17     'December'
         23        ADD_ARRAY_ELEMENT                                ~6      ~17
         24        ASSIGN                                                   !0, ~6
    4    25      > JMP                                                      ->187
    6    26    >   PRE_INC                                                  !1
    7    27        ASSIGN                                                   !2, 30
    8    28        ASSIGN                                                   !3, 31
    9    29        FETCH_DIM_R                                      ~22     !0, !4
   11    30        FETCH_DIM_R                                      ~24     !0, 0
         31        CASE                                                     ~22, ~24
         32      > JMPNZ                                                    ~23, ->67
   14    33    >   FETCH_DIM_R                                      ~25     !0, 1
         34        CASE                                                     ~22, ~25
         35      > JMPNZ                                                    ~23, ->77
   17    36    >   FETCH_DIM_R                                      ~26     !0, 2
         37        CASE                                                     ~22, ~26
         38      > JMPNZ                                                    ~23, ->85
   20    39    >   FETCH_DIM_R                                      ~27     !0, 3
         40        CASE                                                     ~22, ~27
         41      > JMPNZ                                                    ~23, ->95
   23    42    >   FETCH_DIM_R                                      ~28     !0, 4
         43        CASE                                                     ~22, ~28
         44      > JMPNZ                                                    ~23, ->105
   26    45    >   FETCH_DIM_R                                      ~29     !0, 5
         46        CASE                                                     ~22, ~29
         47      > JMPNZ                                                    ~23, ->115
   29    48    >   FETCH_DIM_R                                      ~30     !0, 6
         49        CASE                                                     ~22, ~30
         50      > JMPNZ                                                    ~23, ->125
   32    51    >   FETCH_DIM_R                                      ~31     !0, 7
         52        CASE                                                     ~22, ~31
         53      > JMPNZ                                                    ~23, ->135
   35    54    >   FETCH_DIM_R                                      ~32     !0, 8
         55        CASE                                                     ~22, ~32
         56      > JMPNZ                                                    ~23, ->145
   38    57    >   FETCH_DIM_R                                      ~33     !0, 9
         58        CASE                                                     ~22, ~33
         59      > JMPNZ                                                    ~23, ->155
   41    60    >   FETCH_DIM_R                                      ~34     !0, 10
         61        CASE                                                     ~22, ~34
         62      > JMPNZ                                                    ~23, ->165
   44    63    >   FETCH_DIM_R                                      ~35     !0, 11
         64        CASE                                                     ~22, ~35
         65      > JMPNZ                                                    ~23, ->175
         66    > > JMP                                                      ->185
   12    67    >   ECHO                                                     'Month+'
         68        ECHO                                                     !1
         69        ROPE_INIT                                     5  ~38     '%3A+'
         70        FETCH_DIM_R                                      ~36     !0, !4
         71        ROPE_ADD                                      1  ~38     ~38, ~36
         72        ROPE_ADD                                      2  ~38     ~38, '+has+'
         73        ROPE_ADD                                      3  ~38     ~38, !2
         74        ROPE_END                                      4  ~37     ~38, '+days+%3Cbr%3E'
         75        ECHO                                                     ~37
   13    76      > JMP                                                      ->185
   15    77    >   ROPE_INIT                                     5  ~43     'Month+'
         78        ROPE_ADD                                      1  ~43     ~43, !1
         79        ROPE_ADD                                      2  ~43     ~43, '%3A+'
         80        FETCH_DIM_R                                      ~41     !0, !4
         81        ROPE_ADD                                      3  ~43     ~43, ~41
         82        ROPE_END                                      4  ~42     ~43, '+has+28+or+29+days+%3Cbr%3E'
         83        ECHO                                                     ~42
   16    84      > JMP                                                      ->185
   18    85    >   ROPE_INIT                                     7  ~48     'Month+'
         86        ROPE_ADD                                      1  ~48     ~48, !1
         87        ROPE_ADD                                      2  ~48     ~48, '%3A+'
         88        FETCH_DIM_R                                      ~46     !0, !4
         89        ROPE_ADD                                      3  ~48     ~48, ~46
         90        ROPE_ADD                                      4  ~48     ~48, '+has+'
         91        ROPE_ADD                                      5  ~48     ~48, !3
         92        ROPE_END                                      6  ~47     ~48, '+days+%3Cbr%3E'
         93        ECHO                                                     ~47
   19    94      > JMP                                                      ->185
   21    95    >   ROPE_INIT                                     7  ~54     'Month+'
         96        ROPE_ADD                                      1  ~54     ~54, !1
         97        ROPE_ADD                                      2  ~54     ~54, '%3A+'
         98        FETCH_DIM_R                                      ~52     !0, !4
         99        ROPE_ADD                                      3  ~54     ~54, ~52
        100        ROPE_ADD                                      4  ~54     ~54, '+has+'
        101        ROPE_ADD                                      5  ~54     ~54, !2
        102        ROPE_END                                      6  ~53     ~54, '+days+%3Cbr%3E'
        103        ECHO                                                     ~53
   22   104      > JMP                                                      ->185
   24   105    >   ROPE_INIT                                     7  ~60     'Month+'
        106        ROPE_ADD                                      1  ~60     ~60, !1
        107        ROPE_ADD                                      2  ~60     ~60, '%3A+'
        108        FETCH_DIM_R                                      ~58     !0, !4
        109        ROPE_ADD                                      3  ~60     ~60, ~58
        110        ROPE_ADD                                      4  ~60     ~60, '+has+'
        111        ROPE_ADD                                      5  ~60     ~60, !2
        112        ROPE_END                                      6  ~59     ~60, '+days+%3Cbr%3E'
        113        ECHO                                                     ~59
   25   114      > JMP                                                      ->185
   27   115    >   ROPE_INIT                                     7  ~66     'Month+'
        116        ROPE_ADD                                      1  ~66     ~66, !1
        117        ROPE_ADD                                      2  ~66     ~66, '%3A+'
        118        FETCH_DIM_R                                      ~64     !0, !4
        119        ROPE_ADD                                      3  ~66     ~66, ~64
        120        ROPE_ADD                                      4  ~66     ~66, '+has+'
        121        ROPE_ADD                                      5  ~66     ~66, !2
        122        ROPE_END                                      6  ~65     ~66, '+days+%3Cbr%3E'
        123        ECHO                                                     ~65
   28   124      > JMP                                                      ->185
   30   125    >   ROPE_INIT                                     7  ~72     'Month+'
        126        ROPE_ADD                                      1  ~72     ~72, !1
        127        ROPE_ADD                                      2  ~72     ~72, '%3A+'
        128        FETCH_DIM_R                                      ~70     !0, !4
        129        ROPE_ADD                                      3  ~72     ~72, ~70
        130        ROPE_ADD                                      4  ~72     ~72, '+has+'
        131        ROPE_ADD                                      5  ~72     ~72, !3
        132        ROPE_END                                      6  ~71     ~72, '+days+%3Cbr%3E'
        133        ECHO                                                     ~71
   31   134      > JMP                                                      ->185
   33   135    >   ROPE_INIT                                     7  ~78     'Month+'
        136        ROPE_ADD                                      1  ~78     ~78, !1
        137        ROPE_ADD                                      2  ~78     ~78, '%3A+'
        138        FETCH_DIM_R                                      ~76     !0, !4
        139        ROPE_ADD                                      3  ~78     ~78, ~76
        140        ROPE_ADD                                      4  ~78     ~78, '+has+'
        141        ROPE_ADD                                      5  ~78     ~78, !2
        142        ROPE_END                                      6  ~77     ~78, '+days+%3Cbr%3E'
        143        ECHO                                                     ~77
   34   144      > JMP                                                      ->185
   36   145    >   ROPE_INIT                                     7  ~84     'Month+'
        146        ROPE_ADD                                      1  ~84     ~84, !1
        147        ROPE_ADD                                      2  ~84     ~84, '%3A+'
        148        FETCH_DIM_R                                      ~82     !0, !4
        149        ROPE_ADD                                      3  ~84     ~84, ~82
        150        ROPE_ADD                                      4  ~84     ~84, '+has+'
        151        ROPE_ADD                                      5  ~84     ~84, !2
        152        ROPE_END                                      6  ~83     ~84, '+days+%3Cbr%3E'
        153        ECHO                                                     ~83
   37   154      > JMP                                                      ->185
   39   155    >   ROPE_INIT                                     7  ~90     'Month+'
        156        ROPE_ADD                                      1  ~90     ~90, !1
        157        ROPE_ADD                                      2  ~90     ~90, '%3A+'
        158        FETCH_DIM_R                                      ~88     !0, !4
        159        ROPE_ADD                                      3  ~90     ~90, ~88
        160        ROPE_ADD                                      4  ~90     ~90, '+has+'
        161        ROPE_ADD                                      5  ~90     ~90, !3
        162        ROPE_END                                      6  ~89     ~90, '+days+%3Cbr%3E'
        163        ECHO                                                     ~89
   40   164      > JMP                                                      ->185
   42   165    >   ROPE_INIT                                     7  ~96     'Month+'
        166        ROPE_ADD                                      1  ~96     ~96, !1
        167        ROPE_ADD                                      2  ~96     ~96, '%3A+'
        168        FETCH_DIM_R                                      ~94     !0, !4
        169        ROPE_ADD                                      3  ~96     ~96, ~94
        170        ROPE_ADD                                      4  ~96     ~96, '+has+'
        171        ROPE_ADD                                      5  ~96     ~96, !2
        172        ROPE_END                                      6  ~95     ~96, '+days+%3Cbr%3E'
        173        ECHO                                                     ~95
   43   174      > JMP                                                      ->185
   45   175    >   ROPE_INIT                                     7  ~102    'Month+'
        176        ROPE_ADD                                      1  ~102    ~102, !1
        177        ROPE_ADD                                      2  ~102    ~102, '%3A+'
        178        FETCH_DIM_R                                      ~100    !0, !4
        179        ROPE_ADD                                      3  ~102    ~102, ~100
        180        ROPE_ADD                                      4  ~102    ~102, '+has+'
        181        ROPE_ADD                                      5  ~102    ~102, !3
        182        ROPE_END                                      6  ~101    ~102, '+days+%3Cbr%3E'
        183        ECHO                                                     ~101
   46   184      > JMP                                                      ->185
        185    >   FREE                                                     ~22
   49   186        PRE_INC                                                  !4
    4   187    >   COUNT                                            ~107    !0
        188        IS_SMALLER                                               !4, ~107
        189      > JMPNZ                                                    ~108, ->26
   50   190    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.82 ms | 1411 KiB | 13 Q