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 ) { return $themes[3]; } else { return $themes[0]; } if ($current_day == 5 && $current_time>= 1800){ return $themes[2]; } else { return $themes[1]; } if ($current_day == 6 || $current_day == 0) { 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 = 33
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 26
Branch analysis from position: 23
filename:       /in/iX7li
function name:  (null)
number of ops:  59
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, ->33
   16    30    >   FETCH_DIM_R                                      ~18     !0, 3
         31      > RETURN                                                   ~18
         32*       JMP                                                      ->35
   18    33    >   FETCH_DIM_R                                      ~19     !0, 0
         34      > RETURN                                                   ~19
   21    35*       IS_EQUAL                                         ~20     !2, 5
         36*       JMPZ_EX                                          ~20     ~20, ->39
         37*       IS_SMALLER_OR_EQUAL                              ~21     1800, !1
         38*       BOOL                                             ~20     ~21
         39*       JMPZ                                                     ~20, ->43
   23    40*       FETCH_DIM_R                                      ~22     !0, 2
         41*       RETURN                                                   ~22
         42*       JMP                                                      ->45
   25    43*       FETCH_DIM_R                                      ~23     !0, 1
         44*       RETURN                                                   ~23
   27    45*       IS_EQUAL                                         ~24     !2, 6
         46*       JMPNZ_EX                                         ~24     ~24, ->49
         47*       IS_EQUAL                                         ~25     !2, 0
         48*       BOOL                                             ~24     ~25
         49*       JMPZ                                                     ~24, ->53
   29    50*       FETCH_DIM_R                                      ~26     !0, 2
         51*       RETURN                                                   ~26
         52*       JMP                                                      ->55
   31    53*       FETCH_DIM_R                                      ~27     !0, 1
         54*       RETURN                                                   ~27
   34    55*       INIT_FCALL                                               'print_r'
         56*       SEND_VAR                                                 !0
         57*       DO_ICALL                                                 
         58*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1392 KiB | 17 Q