3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Template Name: Page Sidebar */ get_header(); ?> <?php $options = get_option('anubis'); $alignment = (!empty($options['sidebar_page_layout'])) ? $options['sidebar_page_layout'] : 'right_side' ; switch ($alignment) { case 'right_side' : $align_sidebar = 'right_side'; $align_main = 'left_side'; break; case 'left_side' : $align_sidebar = 'left_side'; $align_main = 'right_side'; break; } ?> <?php az_page_header($post->ID); ?> <div id="content"> <div class="container"> <div class="row"> <div class="span9 <?php echo $align_main; ?>"> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <?php edit_post_link( __('Edit', AZ_THEME_NAME), '<span class="edit-post">[', ']</span>' ); ?> <?php the_content(); ?> <?php endwhile; endif; ?> </div> <div class="span3 <?php echo $align_sidebar; ?>"> <aside id="sidebar"> <?php get_sidebar(); ?> </aside> </div> </div> </div> </div> <?php get_footer(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
4 jumps found. (Code = 188) Position 1 = 21, Position 2 = 24, Position 3 = 27, Position 4 = 16
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 60
Branch analysis from position: 39
1 jumps found. (Code = 42) Position 1 = 57
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 40
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 60, Position 2 = 40
Branch analysis from position: 60
Branch analysis from position: 40
Branch analysis from position: 60
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 27
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 24
Branch analysis from position: 21
Branch analysis from position: 13
4 jumps found. (Code = 188) Position 1 = 21, Position 2 = 24, Position 3 = 27, Position 4 = 16
Branch analysis from position: 21
Branch analysis from position: 24
Branch analysis from position: 27
Branch analysis from position: 16
filename:       /in/0XSnC
function name:  (null)
number of ops:  69
compiled vars:  !0 = $options, !1 = $alignment, !2 = $align_sidebar, !3 = $align_main, !4 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'get_header'
          1        DO_FCALL                                      0          
    5     2        ECHO                                                     '%0A'
    6     3        INIT_FCALL_BY_NAME                                       'get_option'
          4        SEND_VAL_EX                                              'anubis'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !0, $6
    8     7        ISSET_ISEMPTY_DIM_OBJ                         1  ~8      !0, 'sidebar_page_layout'
          8        BOOL_NOT                                         ~9      ~8
          9      > JMPZ                                                     ~9, ->13
         10    >   FETCH_DIM_R                                      ~10     !0, 'sidebar_page_layout'
         11        QM_ASSIGN                                        ~11     ~10
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~11     'right_side'
         14    >   ASSIGN                                                   !1, ~11
   11    15      > SWITCH_STRING                                            !1, [ 'right_side':->21, 'left_side':->24, ], ->27
   12    16    >   IS_EQUAL                                                 !1, 'right_side'
         17      > JMPNZ                                                    ~13, ->21
   16    18    >   IS_EQUAL                                                 !1, 'left_side'
         19      > JMPNZ                                                    ~13, ->24
         20    > > JMP                                                      ->27
   13    21    >   ASSIGN                                                   !2, 'right_side'
   14    22        ASSIGN                                                   !3, 'left_side'
   15    23      > JMP                                                      ->27
   17    24    >   ASSIGN                                                   !2, 'left_side'
   18    25        ASSIGN                                                   !3, 'right_side'
   19    26      > JMP                                                      ->27
   22    27    >   ECHO                                                     '%0A%0A'
   24    28        INIT_FCALL_BY_NAME                                       'az_page_header'
         29        CHECK_FUNC_ARG                                           
         30        FETCH_OBJ_FUNC_ARG                               $18     !4, 'ID'
         31        SEND_FUNC_ARG                                            $18
         32        DO_FCALL                                      0          
   25    33        ECHO                                                     '%0A%0A%3Cdiv+id%3D%22content%22%3E%0A%09%3Cdiv+class%3D%22container%22%3E%0A++++++++%3Cdiv+class%3D%22row%22%3E%0A++++++++%0A++++++++++++%3Cdiv+class%3D%22span9+'
   31    34        ECHO                                                     !3
         35        ECHO                                                     '%22%3E%0A++++++++++++%09'
   32    36        INIT_FCALL_BY_NAME                                       'have_posts'
         37        DO_FCALL                                      0  $20     
         38      > JMPZ                                                     $20, ->60
         39    > > JMP                                                      ->57
         40    >   INIT_FCALL_BY_NAME                                       'the_post'
         41        DO_FCALL                                      0          
   33    42        ECHO                                                     '++++++++++++++++%09'
         43        INIT_FCALL_BY_NAME                                       'edit_post_link'
         44        INIT_FCALL_BY_NAME                                       '__'
         45        SEND_VAL_EX                                              'Edit'
         46        FETCH_CONSTANT                                   ~22     'AZ_THEME_NAME'
         47        SEND_VAL_EX                                              ~22
         48        DO_FCALL                                      0  $23     
         49        SEND_VAR_NO_REF_EX                                       $23
         50        SEND_VAL_EX                                              '%3Cspan+class%3D%22edit-post%22%3E%5B'
         51        SEND_VAL_EX                                              '%5D%3C%2Fspan%3E'
         52        DO_FCALL                                      0          
   34    53        ECHO                                                     '%09%09%09%09%09'
         54        INIT_FCALL_BY_NAME                                       'the_content'
         55        DO_FCALL                                      0          
   35    56        ECHO                                                     '%09%09%09%09'
   32    57    >   INIT_FCALL_BY_NAME                                       'have_posts'
         58        DO_FCALL                                      0  $26     
         59      > JMPNZ                                                    $26, ->40
   36    60    >   ECHO                                                     '++++++++++++%3C%2Fdiv%3E%0A++++++++++++%0A++++++++++++%3Cdiv+class%3D%22span3+'
   38    61        ECHO                                                     !2
         62        ECHO                                                     '%22%3E%0A++++++++++++%09%3Caside+id%3D%22sidebar%22%3E%0A++++++++++++%09%09'
   40    63        INIT_FCALL_BY_NAME                                       'get_sidebar'
         64        DO_FCALL                                      0          
   41    65        ECHO                                                     '++++++++++++++++%3C%2Faside%3E%0A++++++++++++%3C%2Fdiv%3E%0A++++++++++++%0A++++++++%3C%2Fdiv%3E%0A++++%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A%0A'
   48    66        INIT_FCALL_BY_NAME                                       'get_footer'
         67        DO_FCALL                                      0          
         68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.47 ms | 1407 KiB | 13 Q