3v4l.org

run code in 300+ PHP versions simultaneously
<?php //array con temi istallati e abilitati $themes = array(); $themes[0] = 'Bartik'; $themes[1] = 'zen'; $themes[2] = 'omega'; $themes[3] = 'adaptivetheme'; //cambia tema se l'ora รจ pari o dispari $current_time = (Integer) date('Gi'); $current_day = (Integer) date('w'); // 0 domenica - 6 sabato if ($current_day == 1 || $current_day == 2 || $current_day == 3 || $current_day == 4 ) { if(ismobile()) { return $themes[3]; } else { return $themes[0]; } } else if ($current_day == 5 && $current_time>= 1800){ if (ismobile()){ return $themes[2]; } else { return $themes[1]; } } else if ($current_day == 6 || $current_day == 0) { if (ismobile()){ return $themes[2]; } else { return $themes[1]; } } print_r($themes);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 21, Position 2 = 23
Branch analysis from position: 21
2 jumps found. (Code = 47) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
2 jumps found. (Code = 47) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 39
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 53
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 50
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 50
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
2 jumps found. (Code = 47) Position 1 = 55, Position 2 = 57
Branch analysis from position: 55
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 66
Branch analysis from position: 58
2 jumps found. (Code = 43) Position 1 = 61, Position 2 = 64
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
Branch analysis from position: 43
Branch analysis from position: 29
Branch analysis from position: 26
Branch analysis from position: 23
filename:       /in/HoNsl
function name:  (null)
number of ops:  70
compiled vars:  !0 = $themes, !1 = $current_time, !2 = $current_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'Bartik'
    7     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  'zen'
    8     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  'omega'
    9     7        ASSIGN_DIM                                               !0, 3
          8        OP_DATA                                                  'adaptivetheme'
   12     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Gi'
         11        DO_ICALL                                         $8      
         12        CAST                                          4  ~9      $8
         13        ASSIGN                                                   !1, ~9
   13    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'w'
         16        DO_ICALL                                         $11     
         17        CAST                                          4  ~12     $11
         18        ASSIGN                                                   !2, ~12
   14    19        IS_EQUAL                                         ~14     !2, 1
         20      > JMPNZ_EX                                         ~14     ~14, ->23
         21    >   IS_EQUAL                                         ~15     !2, 2
         22        BOOL                                             ~14     ~15
         23    > > JMPNZ_EX                                         ~14     ~14, ->26
         24    >   IS_EQUAL                                         ~16     !2, 3
         25        BOOL                                             ~14     ~16
         26    > > JMPNZ_EX                                         ~14     ~14, ->29
         27    >   IS_EQUAL                                         ~17     !2, 4
         28        BOOL                                             ~14     ~17
         29    > > JMPZ                                                     ~14, ->39
   15    30    >   INIT_FCALL_BY_NAME                                       'ismobile'
         31        DO_FCALL                                      0  $18     
         32      > JMPZ                                                     $18, ->36
   16    33    >   FETCH_DIM_R                                      ~19     !0, 3
         34      > RETURN                                                   ~19
         35*       JMP                                                      ->38
   18    36    >   FETCH_DIM_R                                      ~20     !0, 0
         37      > RETURN                                                   ~20
         38*       JMP                                                      ->66
   21    39    >   IS_EQUAL                                         ~21     !2, 5
         40      > JMPZ_EX                                          ~21     ~21, ->43
         41    >   IS_SMALLER_OR_EQUAL                              ~22     1800, !1
         42        BOOL                                             ~21     ~22
         43    > > JMPZ                                                     ~21, ->53
   22    44    >   INIT_FCALL_BY_NAME                                       'ismobile'
         45        DO_FCALL                                      0  $23     
         46      > JMPZ                                                     $23, ->50
   23    47    >   FETCH_DIM_R                                      ~24     !0, 2
         48      > RETURN                                                   ~24
         49*       JMP                                                      ->52
   25    50    >   FETCH_DIM_R                                      ~25     !0, 1
         51      > RETURN                                                   ~25
         52*       JMP                                                      ->66
   27    53    >   IS_EQUAL                                         ~26     !2, 6
         54      > JMPNZ_EX                                         ~26     ~26, ->57
         55    >   IS_EQUAL                                         ~27     !2, 0
         56        BOOL                                             ~26     ~27
         57    > > JMPZ                                                     ~26, ->66
   28    58    >   INIT_FCALL_BY_NAME                                       'ismobile'
         59        DO_FCALL                                      0  $28     
         60      > JMPZ                                                     $28, ->64
   29    61    >   FETCH_DIM_R                                      ~29     !0, 2
         62      > RETURN                                                   ~29
         63*       JMP                                                      ->66
   31    64    >   FETCH_DIM_R                                      ~30     !0, 1
         65      > RETURN                                                   ~30
   34    66    >   INIT_FCALL                                               'print_r'
         67        SEND_VAR                                                 !0
         68        DO_ICALL                                                 
         69      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.88 ms | 1400 KiB | 17 Q