3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $data; ?> <?php if ( empty( $data['footer_show'] ) || (!empty( $data['footer_show'] ) && $data['footer_show'] == 'yes') ) { ?> <footer id="footer"> <div class="container"> <?php //var_dump($data['footer_row1_widget_positions']); //var_dump($data['footer_row2_widget_positions']); //var_dump($data['footer_row1_show']); //var_dump($data['footer_row2_show']); if ( !empty ( $data['footer_row1_widget_positions'] ) ) { if ( (!empty ( $data['footer_row1_show'] ) && $data['footer_row1_show'] == 'yes' ) || empty ( $data['footer_row1_show'] ) ) { echo '<div class="row">'; var_dump(); $footer_row1_widget_positions = json_decode($data['footer_row1_widget_positions'],true); $number_of_columns = key( $footer_row1_widget_positions); $columns_array = $footer_row1_widget_positions ; for ($i = 1; $i <= $number_of_columns; $i++) { echo '<div class="span'.$columns_array[$number_of_columns][0][$i-1].'">'; if ( !dynamic_sidebar('Footer row 1 - widget '.$i.'') ) : endif; echo '</div>'; } echo '</div><!-- end row -->'; } } if ( !empty ( $data['footer_row2_widget_positions'] ) ) { if ( (!empty ( $data['footer_row2_show'] ) && $data['footer_row2_show'] == 'yes' ) || empty ( $data['footer_row2_show'] ) ) { echo '<div class="row">'; $number_of_columns = key( json_decode ( $data['footer_row2_widget_positions'] ) ); $columns_array = json_decode ( $data['footer_row2_widget_positions'] ,true ); for ($i = 1; $i <= $number_of_columns; $i++) { echo '<div class="span'.$columns_array[$number_of_columns][0][$i-1].'">'; if ( !dynamic_sidebar('Footer row 2 - widget '.$i.'') ) : endif; echo '</div>'; } echo '</div><!-- end row -->'; } } ?> <div class="row"> <div class="span12"> <div class="bottom fixclear"> <?php if ( isset( $data['footer_social_icons'] ) && is_array( $data['footer_social_icons'] ) && !empty ( $data['footer_social_icons'][0]['footer_social_icon'] ) ) { $icon_class = ''; if( $data['footer_which_icons_set'] == 'colored' ) { $icon_class = 'colored'; } echo '<ul class="social-icons '.$icon_class.' fixclear">'; echo '<li class="title">'.__('GET SOCIAL', THEMENAME ).'</li>'; // Translate foreach ( $data['footer_social_icons'] as $key=>$icon ){ $link = ''; $target = ''; if ( isset ( $icon['footer_social_link'] ) && is_array ( $icon['footer_social_link'] )) { $link = $icon['footer_social_link']['url']; $target = 'target="'.$icon['footer_social_link']['target'].'"'; } echo '<li class="'.$icon['footer_social_icon'].'"><a href="'.$link.'" '.$target.'>'.$icon['footer_social_title'].'</a></li>'; } echo '</ul>'; } ?> <?php if( $data['copyright_text'] || $data['footer_logo'] ) { ?> <div class="copyright"> <?php if( $data['footer_logo'] ) { echo '<a href="'.home_url().'"><img src="'.$data['footer_logo'].'" alt="'.get_bloginfo('name').'" /></a>'; } if( $data['copyright_text'] ) { echo '<p>'.stripslashes($data['copyright_text']).'</p>'; } ?> </div><!-- end copyright --> <?php } ?> </div><!-- end bottom --> </div> </div><!-- end row --> </div> </footer> <?php } ?> </div><!-- end page_wrapper --> <a href="#" id="totop"><?php echo __('TOP', THEMENAME ); ?></a> <?php // Translate ?> <?php wp_footer(); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 206
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 61
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
2 jumps found. (Code = 47) Position 1 = 23, Position 2 = 25
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 61
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 42
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 64, Position 2 = 110
Branch analysis from position: 64
2 jumps found. (Code = 46) Position 1 = 67, Position 2 = 70
Branch analysis from position: 67
2 jumps found. (Code = 47) Position 1 = 71, Position 2 = 73
Branch analysis from position: 71
2 jumps found. (Code = 43) Position 1 = 74, Position 2 = 110
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 107
Branch analysis from position: 107
2 jumps found. (Code = 44) Position 1 = 109, Position 2 = 91
Branch analysis from position: 109
2 jumps found. (Code = 46) Position 1 = 113, Position 2 = 116
Branch analysis from position: 113
2 jumps found. (Code = 46) Position 1 = 117, Position 2 = 122
Branch analysis from position: 117
2 jumps found. (Code = 43) Position 1 = 123, Position 2 = 173
Branch analysis from position: 123
2 jumps found. (Code = 43) Position 1 = 127, Position 2 = 128
Branch analysis from position: 127
2 jumps found. (Code = 77) Position 1 = 141, Position 2 = 171
Branch analysis from position: 141
2 jumps found. (Code = 78) Position 1 = 142, Position 2 = 171
Branch analysis from position: 142
2 jumps found. (Code = 46) Position 1 = 147, Position 2 = 150
Branch analysis from position: 147
2 jumps found. (Code = 43) Position 1 = 151, Position 2 = 159
Branch analysis from position: 151
1 jumps found. (Code = 42) Position 1 = 141
Branch analysis from position: 141
Branch analysis from position: 159
Branch analysis from position: 150
Branch analysis from position: 171
2 jumps found. (Code = 47) Position 1 = 176, Position 2 = 178
Branch analysis from position: 176
2 jumps found. (Code = 43) Position 1 = 179, Position 2 = 205
Branch analysis from position: 179
2 jumps found. (Code = 43) Position 1 = 182, Position 2 = 195
Branch analysis from position: 182
2 jumps found. (Code = 43) Position 1 = 197, Position 2 = 204
Branch analysis from position: 197
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 204
Branch analysis from position: 195
Branch analysis from position: 205
Branch analysis from position: 178
Branch analysis from position: 171
Branch analysis from position: 128
Branch analysis from position: 173
Branch analysis from position: 122
Branch analysis from position: 116
Branch analysis from position: 91
2 jumps found. (Code = 43) Position 1 = 105, Position 2 = 105
Branch analysis from position: 105
2 jumps found. (Code = 44) Position 1 = 109, Position 2 = 91
Branch analysis from position: 109
Branch analysis from position: 91
Branch analysis from position: 105
Branch analysis from position: 110
Branch analysis from position: 73
Branch analysis from position: 70
Branch analysis from position: 110
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 56, Position 2 = 56
Branch analysis from position: 56
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 42
Branch analysis from position: 60
Branch analysis from position: 42
Branch analysis from position: 56
Branch analysis from position: 61
Branch analysis from position: 25
Branch analysis from position: 22
Branch analysis from position: 61
Branch analysis from position: 206
Branch analysis from position: 10
Branch analysis from position: 11
filename:       /in/8AIr5
function name:  (null)
number of ops:  219
compiled vars:  !0 = $data, !1 = $footer_row1_widget_positions, !2 = $number_of_columns, !3 = $columns_array, !4 = $i, !5 = $icon_class, !6 = $icon, !7 = $key, !8 = $link, !9 = $target
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BIND_GLOBAL                                              !0, 'data'
    5     1        ECHO                                                     '%09%0A'
    7     2        ISSET_ISEMPTY_DIM_OBJ                         1  ~10     !0, 'footer_show'
          3      > JMPNZ_EX                                         ~10     ~10, ->11
          4    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~11     !0, 'footer_show'
          5        BOOL_NOT                                         ~12     ~11
          6      > JMPZ_EX                                          ~12     ~12, ->10
          7    >   FETCH_DIM_R                                      ~13     !0, 'footer_show'
          8        IS_EQUAL                                         ~14     ~13, 'yes'
          9        BOOL                                             ~12     ~14
         10    >   BOOL                                             ~10     ~12
         11    > > JMPZ                                                     ~10, ->206
    8    12    >   ECHO                                                     '%09%3Cfooter+id%3D%22footer%22%3E%0A%09%09%3Cdiv+class%3D%22container%22%3E%0A%0A%09%09%09'
   18    13        ISSET_ISEMPTY_DIM_OBJ                         1  ~15     !0, 'footer_row1_widget_positions'
         14        BOOL_NOT                                         ~16     ~15
         15      > JMPZ                                                     ~16, ->61
   19    16    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~17     !0, 'footer_row1_show'
         17        BOOL_NOT                                         ~18     ~17
         18      > JMPZ_EX                                          ~18     ~18, ->22
         19    >   FETCH_DIM_R                                      ~19     !0, 'footer_row1_show'
         20        IS_EQUAL                                         ~20     ~19, 'yes'
         21        BOOL                                             ~18     ~20
         22    > > JMPNZ_EX                                         ~18     ~18, ->25
         23    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~21     !0, 'footer_row1_show'
         24        BOOL                                             ~18     ~21
         25    > > JMPZ                                                     ~18, ->61
   21    26    >   ECHO                                                     '%3Cdiv+class%3D%22row%22%3E'
   22    27        INIT_FCALL                                               'var_dump'
         28        DO_ICALL                                                 
   23    29        INIT_FCALL                                               'json_decode'
         30        FETCH_DIM_R                                      ~23     !0, 'footer_row1_widget_positions'
         31        SEND_VAL                                                 ~23
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $24     
         34        ASSIGN                                                   !1, $24
   24    35        INIT_FCALL                                               'key'
         36        SEND_VAR                                                 !1
         37        DO_ICALL                                         $26     
         38        ASSIGN                                                   !2, $26
   26    39        ASSIGN                                                   !3, !1
   27    40        ASSIGN                                                   !4, 1
         41      > JMP                                                      ->58
   28    42    >   SUB                                              ~32     !4, 1
         43        FETCH_DIM_R                                      ~30     !3, !2
         44        FETCH_DIM_R                                      ~31     ~30, 0
         45        FETCH_DIM_R                                      ~33     ~31, ~32
         46        CONCAT                                           ~34     '%3Cdiv+class%3D%22span', ~33
         47        CONCAT                                           ~35     ~34, '%22%3E'
         48        ECHO                                                     ~35
   29    49        INIT_FCALL_BY_NAME                                       'dynamic_sidebar'
         50        CONCAT                                           ~36     'Footer+row+1+-+widget+', !4
         51        CONCAT                                           ~37     ~36, ''
         52        SEND_VAL_EX                                              ~37
         53        DO_FCALL                                      0  $38     
         54        BOOL_NOT                                         ~39     $38
         55      > JMPZ                                                     ~39, ->56
   30    56    >   ECHO                                                     '%3C%2Fdiv%3E'
   27    57        PRE_INC                                                  !4
         58    >   IS_SMALLER_OR_EQUAL                                      !4, !2
         59      > JMPNZ                                                    ~41, ->42
   33    60    >   ECHO                                                     '%3C%2Fdiv%3E%3C%21--+end+row+--%3E'
   39    61    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~42     !0, 'footer_row2_widget_positions'
         62        BOOL_NOT                                         ~43     ~42
         63      > JMPZ                                                     ~43, ->110
   41    64    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~44     !0, 'footer_row2_show'
         65        BOOL_NOT                                         ~45     ~44
         66      > JMPZ_EX                                          ~45     ~45, ->70
         67    >   FETCH_DIM_R                                      ~46     !0, 'footer_row2_show'
         68        IS_EQUAL                                         ~47     ~46, 'yes'
         69        BOOL                                             ~45     ~47
         70    > > JMPNZ_EX                                         ~45     ~45, ->73
         71    >   ISSET_ISEMPTY_DIM_OBJ                         1  ~48     !0, 'footer_row2_show'
         72        BOOL                                             ~45     ~48
         73    > > JMPZ                                                     ~45, ->110
   43    74    >   ECHO                                                     '%3Cdiv+class%3D%22row%22%3E'
   45    75        INIT_FCALL                                               'key'
         76        INIT_FCALL                                               'json_decode'
         77        FETCH_DIM_R                                      ~49     !0, 'footer_row2_widget_positions'
         78        SEND_VAL                                                 ~49
         79        DO_ICALL                                         $50     
         80        SEND_VAR                                                 $50
         81        DO_ICALL                                         $51     
         82        ASSIGN                                                   !2, $51
   46    83        INIT_FCALL                                               'json_decode'
         84        FETCH_DIM_R                                      ~53     !0, 'footer_row2_widget_positions'
         85        SEND_VAL                                                 ~53
         86        SEND_VAL                                                 <true>
         87        DO_ICALL                                         $54     
         88        ASSIGN                                                   !3, $54
   48    89        ASSIGN                                                   !4, 1
         90      > JMP                                                      ->107
   49    91    >   SUB                                              ~59     !4, 1
         92        FETCH_DIM_R                                      ~57     !3, !2
         93        FETCH_DIM_R                                      ~58     ~57, 0
         94        FETCH_DIM_R                                      ~60     ~58, ~59
         95        CONCAT                                           ~61     '%3Cdiv+class%3D%22span', ~60
         96        CONCAT                                           ~62     ~61, '%22%3E'
         97        ECHO                                                     ~62
   50    98        INIT_FCALL_BY_NAME                                       'dynamic_sidebar'
         99        CONCAT                                           ~63     'Footer+row+2+-+widget+', !4
        100        CONCAT                                           ~64     ~63, ''
        101        SEND_VAL_EX                                              ~64
        102        DO_FCALL                                      0  $65     
        103        BOOL_NOT                                         ~66     $65
        104      > JMPZ                                                     ~66, ->105
   51   105    >   ECHO                                                     '%3C%2Fdiv%3E'
   48   106        PRE_INC                                                  !4
        107    >   IS_SMALLER_OR_EQUAL                                      !4, !2
        108      > JMPNZ                                                    ~68, ->91
   54   109    >   ECHO                                                     '%3C%2Fdiv%3E%3C%21--+end+row+--%3E'
   59   110    >   ECHO                                                     '%09%0A%09%09%09%0A%09%09%09%3Cdiv+class%3D%22row%22%3E%0A%09%09%09%09%3Cdiv+class%3D%22span12%22%3E%0A%09%09%09%09%09%3Cdiv+class%3D%22bottom+fixclear%22%3E%0A%09%09%09%09%09%0A%09%09%09%09%09'
   66   111        ISSET_ISEMPTY_DIM_OBJ                         0  ~69     !0, 'footer_social_icons'
        112      > JMPZ_EX                                          ~69     ~69, ->116
        113    >   FETCH_DIM_R                                      ~70     !0, 'footer_social_icons'
        114        TYPE_CHECK                                  128  ~71     ~70
        115        BOOL                                             ~69     ~71
        116    > > JMPZ_EX                                          ~69     ~69, ->122
        117    >   FETCH_DIM_IS                                     ~72     !0, 'footer_social_icons'
        118        FETCH_DIM_IS                                     ~73     ~72, 0
        119        ISSET_ISEMPTY_DIM_OBJ                         1  ~74     ~73, 'footer_social_icon'
        120        BOOL_NOT                                         ~75     ~74
        121        BOOL                                             ~69     ~75
        122    > > JMPZ                                                     ~69, ->173
   68   123    >   ASSIGN                                                   !5, ''
   71   124        FETCH_DIM_R                                      ~77     !0, 'footer_which_icons_set'
        125        IS_EQUAL                                                 ~77, 'colored'
        126      > JMPZ                                                     ~78, ->128
   72   127    >   ASSIGN                                                   !5, 'colored'
   75   128    >   CONCAT                                           ~80     '%3Cul+class%3D%22social-icons+', !5
        129        CONCAT                                           ~81     ~80, '+fixclear%22%3E'
        130        ECHO                                                     ~81
   77   131        INIT_FCALL_BY_NAME                                       '__'
        132        SEND_VAL_EX                                              'GET+SOCIAL'
        133        FETCH_CONSTANT                                   ~82     'THEMENAME'
        134        SEND_VAL_EX                                              ~82
        135        DO_FCALL                                      0  $83     
        136        CONCAT                                           ~84     '%3Cli+class%3D%22title%22%3E', $83
        137        CONCAT                                           ~85     ~84, '%3C%2Fli%3E'
        138        ECHO                                                     ~85
   79   139        FETCH_DIM_R                                      ~86     !0, 'footer_social_icons'
        140      > FE_RESET_R                                       $87     ~86, ->171
        141    > > FE_FETCH_R                                       ~88     $87, !6, ->171
        142    >   ASSIGN                                                   !7, ~88
   81   143        ASSIGN                                                   !8, ''
   82   144        ASSIGN                                                   !9, ''
   84   145        ISSET_ISEMPTY_DIM_OBJ                         0  ~92     !6, 'footer_social_link'
        146      > JMPZ_EX                                          ~92     ~92, ->150
        147    >   FETCH_DIM_R                                      ~93     !6, 'footer_social_link'
        148        TYPE_CHECK                                  128  ~94     ~93
        149        BOOL                                             ~92     ~94
        150    > > JMPZ                                                     ~92, ->159
   85   151    >   FETCH_DIM_R                                      ~95     !6, 'footer_social_link'
        152        FETCH_DIM_R                                      ~96     ~95, 'url'
        153        ASSIGN                                                   !8, ~96
   86   154        FETCH_DIM_R                                      ~98     !6, 'footer_social_link'
        155        FETCH_DIM_R                                      ~99     ~98, 'target'
        156        CONCAT                                           ~100    'target%3D%22', ~99
        157        CONCAT                                           ~101    ~100, '%22'
        158        ASSIGN                                                   !9, ~101
   90   159    >   FETCH_DIM_R                                      ~103    !6, 'footer_social_icon'
        160        CONCAT                                           ~104    '%3Cli+class%3D%22', ~103
        161        CONCAT                                           ~105    ~104, '%22%3E%3Ca+href%3D%22'
        162        CONCAT                                           ~106    ~105, !8
        163        CONCAT                                           ~107    ~106, '%22+'
        164        CONCAT                                           ~108    ~107, !9
        165        CONCAT                                           ~109    ~108, '%3E'
        166        FETCH_DIM_R                                      ~110    !6, 'footer_social_title'
        167        CONCAT                                           ~111    ~109, ~110
        168        CONCAT                                           ~112    ~111, '%3C%2Fa%3E%3C%2Fli%3E'
        169        ECHO                                                     ~112
   79   170      > JMP                                                      ->141
        171    >   FE_FREE                                                  $87
   93   172        ECHO                                                     '%3C%2Ful%3E'
   97   173    >   ECHO                                                     '%09%09%09%09%09%0A%09%09%09%09%09'
   98   174        FETCH_DIM_R                                      ~113    !0, 'copyright_text'
        175      > JMPNZ_EX                                         ~113    ~113, ->178
        176    >   FETCH_DIM_R                                      ~114    !0, 'footer_logo'
        177        BOOL                                             ~113    ~114
        178    > > JMPZ                                                     ~113, ->205
   99   179    >   ECHO                                                     '%09%09%09%09%09%09%0A%09%09%09%09%09%09%3Cdiv+class%3D%22copyright%22%3E%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09'
  104   180        FETCH_DIM_R                                      ~115    !0, 'footer_logo'
        181      > JMPZ                                                     ~115, ->195
  105   182    >   INIT_FCALL_BY_NAME                                       'home_url'
        183        DO_FCALL                                      0  $116    
        184        CONCAT                                           ~117    '%3Ca+href%3D%22', $116
        185        CONCAT                                           ~118    ~117, '%22%3E%3Cimg+src%3D%22'
        186        FETCH_DIM_R                                      ~119    !0, 'footer_logo'
        187        CONCAT                                           ~120    ~118, ~119
        188        CONCAT                                           ~121    ~120, '%22+alt%3D%22'
        189        INIT_FCALL_BY_NAME                                       'get_bloginfo'
        190        SEND_VAL_EX                                              'name'
        191        DO_FCALL                                      0  $122    
        192        CONCAT                                           ~123    ~121, $122
        193        CONCAT                                           ~124    ~123, '%22+%2F%3E%3C%2Fa%3E'
        194        ECHO                                                     ~124
  109   195    >   FETCH_DIM_R                                      ~125    !0, 'copyright_text'
        196      > JMPZ                                                     ~125, ->204
  110   197    >   INIT_FCALL                                               'stripslashes'
        198        FETCH_DIM_R                                      ~126    !0, 'copyright_text'
        199        SEND_VAL                                                 ~126
        200        DO_ICALL                                         $127    
        201        CONCAT                                           ~128    '%3Cp%3E', $127
        202        CONCAT                                           ~129    ~128, '%3C%2Fp%3E'
        203        ECHO                                                     ~129
  114   204    >   ECHO                                                     '%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09%09%3C%2Fdiv%3E%3C%21--+end+copyright+--%3E%0A%09%09%09%09%09%09%09%0A%09%09%09%09%09'
  119   205    >   ECHO                                                     '%09%09%09%09%09%09%0A%0A%09%09%09%09%09%3C%2Fdiv%3E%3C%21--+end+bottom+--%3E%0A%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%3C%2Fdiv%3E%3C%21--+end+row+--%3E%0A%09%09%09%0A%09%09%3C%2Fdiv%3E%0A%09%3C%2Ffooter%3E%0A%09'
  128   206    >   ECHO                                                     '++++%3C%2Fdiv%3E%3C%21--+end+page_wrapper+--%3E%0A%09%0A++++%3Ca+href%3D%22%23%22+id%3D%22totop%22%3E'
  130   207        INIT_FCALL_BY_NAME                                       '__'
        208        SEND_VAL_EX                                              'TOP'
        209        FETCH_CONSTANT                                   ~130    'THEMENAME'
        210        SEND_VAL_EX                                              ~130
        211        DO_FCALL                                      0  $131    
        212        ECHO                                                     $131
        213        ECHO                                                     '%3C%2Fa%3E+'
  131   214        ECHO                                                     '%0A'
  132   215        INIT_FCALL_BY_NAME                                       'wp_footer'
        216        DO_FCALL                                      0          
  133   217        ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
  134   218      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.78 ms | 1420 KiB | 21 Q