3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hour = date('H'); $day = date('w'); $shows = array( "", "Show 1", "Show 2", "Show 3", "Show 4", ); $show = 0; if($hour >= 18 && $hour < 21 && $day == 5) { $show = 1; } if($hour >= 21 && $hour < 22 && $day == 5) { $show = 2; } if($hour >= 22 && $hour < 24 && $day == 5) { $show = 3; } if($hour >= 0 && $hour < 6 && $day == 6) { $show = 4; } for($i = 0; $i < count($shows); $i++){ if($show == $i) { echo '<span style="font-weight:bold;">'.$shows[$i].'</span>'; } else { echo '<span>'.$shows[$i].'</span>'; } echo "<br>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 28
Branch analysis from position: 27
2 jumps found. (Code = 46) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
2 jumps found. (Code = 46) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 37
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
2 jumps found. (Code = 46) Position 1 = 42, Position 2 = 44
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 45, Position 2 = 46
Branch analysis from position: 45
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
2 jumps found. (Code = 44) Position 1 = 64, Position 2 = 48
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 50, Position 2 = 55
Branch analysis from position: 50
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
2 jumps found. (Code = 44) Position 1 = 64, Position 2 = 48
Branch analysis from position: 64
Branch analysis from position: 48
Branch analysis from position: 55
2 jumps found. (Code = 44) Position 1 = 64, Position 2 = 48
Branch analysis from position: 64
Branch analysis from position: 48
Branch analysis from position: 46
Branch analysis from position: 44
Branch analysis from position: 41
Branch analysis from position: 37
Branch analysis from position: 35
Branch analysis from position: 32
Branch analysis from position: 28
Branch analysis from position: 26
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 17
Branch analysis from position: 14
filename:       /in/OVpZa
function name:  (null)
number of ops:  65
compiled vars:  !0 = $hour, !1 = $day, !2 = $shows, !3 = $show, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'H'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'w'
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    4     8        ASSIGN                                                   !2, <array>
   12     9        ASSIGN                                                   !3, 0
   13    10        IS_SMALLER_OR_EQUAL                              ~11     18, !0
         11      > JMPZ_EX                                          ~11     ~11, ->14
         12    >   IS_SMALLER                                       ~12     !0, 21
         13        BOOL                                             ~11     ~12
         14    > > JMPZ_EX                                          ~11     ~11, ->17
         15    >   IS_EQUAL                                         ~13     !1, 5
         16        BOOL                                             ~11     ~13
         17    > > JMPZ                                                     ~11, ->19
         18    >   ASSIGN                                                   !3, 1
   14    19    >   IS_SMALLER_OR_EQUAL                              ~15     21, !0
         20      > JMPZ_EX                                          ~15     ~15, ->23
         21    >   IS_SMALLER                                       ~16     !0, 22
         22        BOOL                                             ~15     ~16
         23    > > JMPZ_EX                                          ~15     ~15, ->26
         24    >   IS_EQUAL                                         ~17     !1, 5
         25        BOOL                                             ~15     ~17
         26    > > JMPZ                                                     ~15, ->28
         27    >   ASSIGN                                                   !3, 2
   15    28    >   IS_SMALLER_OR_EQUAL                              ~19     22, !0
         29      > JMPZ_EX                                          ~19     ~19, ->32
         30    >   IS_SMALLER                                       ~20     !0, 24
         31        BOOL                                             ~19     ~20
         32    > > JMPZ_EX                                          ~19     ~19, ->35
         33    >   IS_EQUAL                                         ~21     !1, 5
         34        BOOL                                             ~19     ~21
         35    > > JMPZ                                                     ~19, ->37
         36    >   ASSIGN                                                   !3, 3
   16    37    >   IS_SMALLER_OR_EQUAL                              ~23     0, !0
         38      > JMPZ_EX                                          ~23     ~23, ->41
         39    >   IS_SMALLER                                       ~24     !0, 6
         40        BOOL                                             ~23     ~24
         41    > > JMPZ_EX                                          ~23     ~23, ->44
         42    >   IS_EQUAL                                         ~25     !1, 6
         43        BOOL                                             ~23     ~25
         44    > > JMPZ                                                     ~23, ->46
         45    >   ASSIGN                                                   !3, 4
   18    46    >   ASSIGN                                                   !4, 0
         47      > JMP                                                      ->61
   19    48    >   IS_EQUAL                                                 !3, !4
         49      > JMPZ                                                     ~28, ->55
         50    >   FETCH_DIM_R                                      ~29     !2, !4
         51        CONCAT                                           ~30     '%3Cspan+style%3D%22font-weight%3Abold%3B%22%3E', ~29
         52        CONCAT                                           ~31     ~30, '%3C%2Fspan%3E'
         53        ECHO                                                     ~31
         54      > JMP                                                      ->59
   20    55    >   FETCH_DIM_R                                      ~32     !2, !4
         56        CONCAT                                           ~33     '%3Cspan%3E', ~32
         57        CONCAT                                           ~34     ~33, '%3C%2Fspan%3E'
         58        ECHO                                                     ~34
   21    59    >   ECHO                                                     '%3Cbr%3E'
   18    60        PRE_INC                                                  !4
         61    >   COUNT                                            ~36     !2
         62        IS_SMALLER                                               !4, ~36
         63      > JMPNZ                                                    ~37, ->48
   22    64    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.87 ms | 1400 KiB | 15 Q