3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date('i'); switch ($date) { case ($date >= 1 && $date <= 5): $switchDate = "35"; break; case ($date >= 5 && $date <= 10): $switchDate = "40"; break; case ($date >= 10 && $date <= 15): $switchDate = "45"; break; case ($date >= 15 && $date <= 20): $switchDate = "50"; break; case ($date >= 20 && $date <= 25): $switchDate = "55"; break; case ($date >= 25 && $date <= 30): $switchDate = "00"; break; case ($date >= 30 && $date <= 35): $switchDate = "05"; break; case ($date >= 35 && $date <= 40): $switchDate = "10"; break; case ($date >= 40 && $date <= 45): $switchDate = "15"; break; case ($date >= 45 && $date <= 50): $switchDate = "20"; break; case ($date >= 50 && $date <= 55): $switchDate = "25"; break; case ($date >= 55 && $date <= 59): $switchDate = "30"; break; default: $switchDate = "00"; } echo $switchDate;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 77
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 79
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 81
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 83
Branch analysis from position: 28
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 85
Branch analysis from position: 34
2 jumps found. (Code = 46) Position 1 = 36, Position 2 = 38
Branch analysis from position: 36
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 87
Branch analysis from position: 40
2 jumps found. (Code = 46) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 46, Position 2 = 89
Branch analysis from position: 46
2 jumps found. (Code = 46) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 91
Branch analysis from position: 52
2 jumps found. (Code = 46) Position 1 = 54, Position 2 = 56
Branch analysis from position: 54
2 jumps found. (Code = 44) Position 1 = 58, Position 2 = 93
Branch analysis from position: 58
2 jumps found. (Code = 46) Position 1 = 60, Position 2 = 62
Branch analysis from position: 60
2 jumps found. (Code = 44) Position 1 = 64, Position 2 = 95
Branch analysis from position: 64
2 jumps found. (Code = 46) Position 1 = 66, Position 2 = 68
Branch analysis from position: 66
2 jumps found. (Code = 44) Position 1 = 70, Position 2 = 97
Branch analysis from position: 70
2 jumps found. (Code = 46) Position 1 = 72, Position 2 = 74
Branch analysis from position: 72
2 jumps found. (Code = 44) Position 1 = 76, Position 2 = 99
Branch analysis from position: 76
1 jumps found. (Code = 42) Position 1 = 101
Branch analysis from position: 101
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 99
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 74
Branch analysis from position: 97
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 68
Branch analysis from position: 95
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 62
Branch analysis from position: 93
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 56
Branch analysis from position: 91
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 50
Branch analysis from position: 89
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 44
Branch analysis from position: 87
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 38
Branch analysis from position: 85
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 32
Branch analysis from position: 83
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 26
Branch analysis from position: 81
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 20
Branch analysis from position: 79
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 14
Branch analysis from position: 77
1 jumps found. (Code = 42) Position 1 = 102
Branch analysis from position: 102
Branch analysis from position: 8
filename:       /in/7pCqC
function name:  (null)
number of ops:  104
compiled vars:  !0 = $date, !1 = $switchDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'i'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    6     4        IS_SMALLER_OR_EQUAL                              ~5      1, !0
          5      > JMPZ_EX                                          ~5      ~5, ->8
          6    >   IS_SMALLER_OR_EQUAL                              ~6      !0, 5
          7        BOOL                                             ~5      ~6
          8    >   IS_EQUAL                                                 !0, ~5
          9      > JMPNZ                                                    ~4, ->77
    9    10    >   IS_SMALLER_OR_EQUAL                              ~7      5, !0
         11      > JMPZ_EX                                          ~7      ~7, ->14
         12    >   IS_SMALLER_OR_EQUAL                              ~8      !0, 10
         13        BOOL                                             ~7      ~8
         14    >   IS_EQUAL                                                 !0, ~7
         15      > JMPNZ                                                    ~4, ->79
   12    16    >   IS_SMALLER_OR_EQUAL                              ~9      10, !0
         17      > JMPZ_EX                                          ~9      ~9, ->20
         18    >   IS_SMALLER_OR_EQUAL                              ~10     !0, 15
         19        BOOL                                             ~9      ~10
         20    >   IS_EQUAL                                                 !0, ~9
         21      > JMPNZ                                                    ~4, ->81
   15    22    >   IS_SMALLER_OR_EQUAL                              ~11     15, !0
         23      > JMPZ_EX                                          ~11     ~11, ->26
         24    >   IS_SMALLER_OR_EQUAL                              ~12     !0, 20
         25        BOOL                                             ~11     ~12
         26    >   IS_EQUAL                                                 !0, ~11
         27      > JMPNZ                                                    ~4, ->83
   18    28    >   IS_SMALLER_OR_EQUAL                              ~13     20, !0
         29      > JMPZ_EX                                          ~13     ~13, ->32
         30    >   IS_SMALLER_OR_EQUAL                              ~14     !0, 25
         31        BOOL                                             ~13     ~14
         32    >   IS_EQUAL                                                 !0, ~13
         33      > JMPNZ                                                    ~4, ->85
   21    34    >   IS_SMALLER_OR_EQUAL                              ~15     25, !0
         35      > JMPZ_EX                                          ~15     ~15, ->38
         36    >   IS_SMALLER_OR_EQUAL                              ~16     !0, 30
         37        BOOL                                             ~15     ~16
         38    >   IS_EQUAL                                                 !0, ~15
         39      > JMPNZ                                                    ~4, ->87
   24    40    >   IS_SMALLER_OR_EQUAL                              ~17     30, !0
         41      > JMPZ_EX                                          ~17     ~17, ->44
         42    >   IS_SMALLER_OR_EQUAL                              ~18     !0, 35
         43        BOOL                                             ~17     ~18
         44    >   IS_EQUAL                                                 !0, ~17
         45      > JMPNZ                                                    ~4, ->89
   27    46    >   IS_SMALLER_OR_EQUAL                              ~19     35, !0
         47      > JMPZ_EX                                          ~19     ~19, ->50
         48    >   IS_SMALLER_OR_EQUAL                              ~20     !0, 40
         49        BOOL                                             ~19     ~20
         50    >   IS_EQUAL                                                 !0, ~19
         51      > JMPNZ                                                    ~4, ->91
   30    52    >   IS_SMALLER_OR_EQUAL                              ~21     40, !0
         53      > JMPZ_EX                                          ~21     ~21, ->56
         54    >   IS_SMALLER_OR_EQUAL                              ~22     !0, 45
         55        BOOL                                             ~21     ~22
         56    >   IS_EQUAL                                                 !0, ~21
         57      > JMPNZ                                                    ~4, ->93
   33    58    >   IS_SMALLER_OR_EQUAL                              ~23     45, !0
         59      > JMPZ_EX                                          ~23     ~23, ->62
         60    >   IS_SMALLER_OR_EQUAL                              ~24     !0, 50
         61        BOOL                                             ~23     ~24
         62    >   IS_EQUAL                                                 !0, ~23
         63      > JMPNZ                                                    ~4, ->95
   36    64    >   IS_SMALLER_OR_EQUAL                              ~25     50, !0
         65      > JMPZ_EX                                          ~25     ~25, ->68
         66    >   IS_SMALLER_OR_EQUAL                              ~26     !0, 55
         67        BOOL                                             ~25     ~26
         68    >   IS_EQUAL                                                 !0, ~25
         69      > JMPNZ                                                    ~4, ->97
   39    70    >   IS_SMALLER_OR_EQUAL                              ~27     55, !0
         71      > JMPZ_EX                                          ~27     ~27, ->74
         72    >   IS_SMALLER_OR_EQUAL                              ~28     !0, 59
         73        BOOL                                             ~27     ~28
         74    >   IS_EQUAL                                                 !0, ~27
         75      > JMPNZ                                                    ~4, ->99
         76    > > JMP                                                      ->101
    7    77    >   ASSIGN                                                   !1, '35'
    8    78      > JMP                                                      ->102
   10    79    >   ASSIGN                                                   !1, '40'
   11    80      > JMP                                                      ->102
   13    81    >   ASSIGN                                                   !1, '45'
   14    82      > JMP                                                      ->102
   16    83    >   ASSIGN                                                   !1, '50'
   17    84      > JMP                                                      ->102
   19    85    >   ASSIGN                                                   !1, '55'
   20    86      > JMP                                                      ->102
   22    87    >   ASSIGN                                                   !1, '00'
   23    88      > JMP                                                      ->102
   25    89    >   ASSIGN                                                   !1, '05'
   26    90      > JMP                                                      ->102
   28    91    >   ASSIGN                                                   !1, '10'
   29    92      > JMP                                                      ->102
   31    93    >   ASSIGN                                                   !1, '15'
   32    94      > JMP                                                      ->102
   34    95    >   ASSIGN                                                   !1, '20'
   35    96      > JMP                                                      ->102
   37    97    >   ASSIGN                                                   !1, '25'
   38    98      > JMP                                                      ->102
   40    99    >   ASSIGN                                                   !1, '30'
   41   100      > JMP                                                      ->102
   43   101    >   ASSIGN                                                   !1, '00'
   46   102    >   ECHO                                                     !1
        103      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.64 ms | 1408 KiB | 15 Q