3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.55 ms | 1411 KiB | 13 Q