3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Fist full of comments if (!function_exists("custom_comment")) { function custom_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?>> <a name="comment-<?php comment_ID() ?>"></a> <div id="li-comment-<?php comment_ID() ?>" class="comment-container"> <div class="comment-head"> <?php if(get_comment_type() == "comment"){ ?> <div class="avatar"><?php the_commenter_avatar($args) ?></div> <?php } ?> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div><!-- /.reply --> </div><!-- /.comment-head --> <div class="comment-entry" id="comment-<?php comment_ID(); ?>"> <span class="arrow"></span> <div class="comment-info"> <div class="rastm"><span class="name"><?php the_commenter_link() ?></span></div> <div class="chapm"> <span class="date"><?php echo get_comment_date(get_option( 'date_format' )) ?> <?php _e('at', 'themejunkie'); ?> <?php echo get_comment_time(get_option( 'time_format' )); ?></span> <span class="edit"><?php edit_comment_link('ویرایش', '', ''); ?></span> </div> <div class=makh >سایت آزمون دکتری</div> <div class="clear"></div> </div> <?php comment_text() ?> <?php if ($comment->comment_approved == '0') { ?> <p class='unapproved'>نظر شما در انتظار تایید است.</p> <?php } ?> </div><!-- /comment-entry --> </div><!-- /.comment-container --> <?php } } // PINGBACK / TRACKBACK OUTPUT if (!function_exists("list_pings")) { function list_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="comment-<?php comment_ID(); ?>"> <span class="author"><?php comment_author_link(); ?></span> - <span class="date"><?php echo get_comment_date(get_option( 'date_format' )) ?></span> <span class="pingcontent"><?php comment_text() ?></span> <?php } } if (!function_exists("the_commenter_link")) { function the_commenter_link() { $commenter = get_comment_author_link(); if ( ereg( ']* class=[^>]+>', $commenter ) ) {$commenter = ereg_replace( '(]* class=[\'"]?)', '\\1url ' , $commenter ); } else { $commenter = ereg_replace( '(<a )/', '\\1class="url "' , $commenter );} echo $commenter ; } } if (!function_exists("the_commenter_avatar")) { function the_commenter_avatar($args) { $email = get_comment_author_email(); $avatar = str_replace( "class='avatar", "class='photo avatar", get_avatar( "$email", $args['avatar_size']) ); echo $avatar; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 24
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/rRGra
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'function_exists'
          1        SEND_VAL                                                 'custom_comment'
          2        DO_ICALL                                         $0      
          3        BOOL_NOT                                         ~1      $0
          4      > JMPZ                                                     ~1, ->6
    4     5    >   DECLARE_FUNCTION                                         'custom_comment'
   57     6    >   INIT_FCALL                                               'function_exists'
          7        SEND_VAL                                                 'list_pings'
          8        DO_ICALL                                         $2      
          9        BOOL_NOT                                         ~3      $2
         10      > JMPZ                                                     ~3, ->12
   58    11    >   DECLARE_FUNCTION                                         'list_pings'
   71    12    >   INIT_FCALL                                               'function_exists'
         13        SEND_VAL                                                 'the_commenter_link'
         14        DO_ICALL                                         $4      
         15        BOOL_NOT                                         ~5      $4
         16      > JMPZ                                                     ~5, ->18
   72    17    >   DECLARE_FUNCTION                                         'the_commenter_link'
   80    18    >   INIT_FCALL                                               'function_exists'
         19        SEND_VAL                                                 'the_commenter_avatar'
         20        DO_ICALL                                         $6      
         21        BOOL_NOT                                         ~7      $6
         22      > JMPZ                                                     ~7, ->24
   81    23    >   DECLARE_FUNCTION                                         'the_commenter_avatar'
   88    24    > > RETURN                                                   1

Function %00custom_comment%2Fin%2FrRGra%3A4%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 25
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 76, Position 2 = 77
Branch analysis from position: 76
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 77
Branch analysis from position: 25
filename:       /in/rRGra
function name:  custom_comment
number of ops:  79
compiled vars:  !0 = $comment, !1 = $args, !2 = $depth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        FETCH_W                      global              $3      'GLOBALS'
          4        ASSIGN_DIM                                               $3, 'comment'
          5        OP_DATA                                                  !0
    6     6        ECHO                                                     '%09+++++++++++++++++%0A%09%09%3Cli+'
    7     7        INIT_FCALL_BY_NAME                                       'comment_class'
          8        DO_FCALL                                      0          
          9        ECHO                                                     '%3E%0A%09++++%0A%09++++%09%3Ca+name%3D%22comment-'
    9    10        INIT_FCALL_BY_NAME                                       'comment_ID'
         11        DO_FCALL                                      0          
         12        ECHO                                                     '%22%3E%3C%2Fa%3E%0A%09++++++%09%0A%09++++++%09%3Cdiv+id%3D%22li-comment-'
   11    13        INIT_FCALL_BY_NAME                                       'comment_ID'
         14        DO_FCALL                                      0          
         15        ECHO                                                     '%22+class%3D%22comment-container%22%3E%0A%09%0A%09%09++++++%09%3Cdiv+class%3D%22comment-head%22%3E%0A%09%09++++++%09++++%0A%09%09++++++%09++++'
   15    16        INIT_FCALL_BY_NAME                                       'get_comment_type'
         17        DO_FCALL                                      0  $8      
         18        IS_EQUAL                                                 $8, 'comment'
         19      > JMPZ                                                     ~9, ->25
   16    20    >   ECHO                                                     '%09++++++++++++++++%3Cdiv+class%3D%22avatar%22%3E'
         21        INIT_FCALL_BY_NAME                                       'the_commenter_avatar'
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0          
         24        ECHO                                                     '%3C%2Fdiv%3E%0A%09++++++++++++%09'
   17    25    >   ECHO                                                     '++++++++%0A%09+++++++%09%09%09%09%09%0A%09%09%09%09%09%3Cdiv+class%3D%22reply%22%3E%0A%09++++++++++++++++++++'
   20    26        INIT_FCALL_BY_NAME                                       'comment_reply_link'
         27        INIT_FCALL                                               'array_merge'
         28        SEND_VAR                                                 !1
         29        INIT_ARRAY                                       ~11     !2, 'depth'
         30        FETCH_DIM_R                                      ~12     !1, 'max_depth'
         31        ADD_ARRAY_ELEMENT                                ~11     ~12, 'max_depth'
         32        SEND_VAL                                                 ~11
         33        DO_ICALL                                         $13     
         34        SEND_VAR_NO_REF_EX                                       $13
         35        DO_FCALL                                      0          
   21    36        ECHO                                                     '%09++++++++++++++++%3C%2Fdiv%3E%3C%21--+%2F.reply+--%3E++++%09++++++++++++++++%0A%09%09++++++++%09%09++++++++++%09%0A%09%09%09%09%3C%2Fdiv%3E%3C%21--+%2F.comment-head+--%3E%0A%09%09++++++%0A%09%09+++%09%09%3Cdiv+class%3D%22comment-entry%22++id%3D%22comment-'
   25    37        INIT_FCALL_BY_NAME                                       'comment_ID'
         38        DO_FCALL                                      0          
         39        ECHO                                                     '%22%3E%0A%09%09+++%09%09%0A%09%09+++%09%09%3Cspan+class%3D%22arrow%22%3E%3C%2Fspan%3E%0A%09%09+++%09%09%0A%09%09+++%09%09%3Cdiv+class%3D%22comment-info%22%3E%0A%09%09+++%09%09%0A%09%09%09+++%09%09%3Cdiv+class%3D%22rastm%22%3E%3Cspan+class%3D%22name%22%3E'
   31    40        INIT_FCALL_BY_NAME                                       'the_commenter_link'
         41        DO_FCALL                                      0          
         42        ECHO                                                     '%3C%2Fspan%3E%3C%2Fdiv%3E%0A%09%09%09+++%09%09%3Cdiv+class%3D%22chapm%22%3E++++++++%0A%09%09++++++++++++++++%3Cspan+class%3D%22date%22%3E'
   33    43        INIT_FCALL_BY_NAME                                       'get_comment_date'
         44        INIT_FCALL_BY_NAME                                       'get_option'
         45        SEND_VAL_EX                                              'date_format'
         46        DO_FCALL                                      0  $17     
         47        SEND_VAR_NO_REF_EX                                       $17
         48        DO_FCALL                                      0  $18     
         49        ECHO                                                     $18
         50        ECHO                                                     '+'
         51        INIT_FCALL_BY_NAME                                       '_e'
         52        SEND_VAL_EX                                              'at'
         53        SEND_VAL_EX                                              'themejunkie'
         54        DO_FCALL                                      0          
         55        ECHO                                                     '+'
         56        INIT_FCALL_BY_NAME                                       'get_comment_time'
         57        INIT_FCALL_BY_NAME                                       'get_option'
         58        SEND_VAL_EX                                              'time_format'
         59        DO_FCALL                                      0  $20     
         60        SEND_VAR_NO_REF_EX                                       $20
         61        DO_FCALL                                      0  $21     
         62        ECHO                                                     $21
         63        ECHO                                                     '%3C%2Fspan%3E%0A%09%09+++++++++++++++%3Cspan+class%3D%22edit%22%3E'
   34    64        INIT_FCALL_BY_NAME                                       'edit_comment_link'
         65        SEND_VAL_EX                                              '%D9%88%DB%8C%D8%B1%D8%A7%DB%8C%D8%B4'
         66        SEND_VAL_EX                                              ''
         67        SEND_VAL_EX                                              ''
         68        DO_FCALL                                      0          
         69        ECHO                                                     '%3C%2Fspan%3E%0A%09%09%09%09%09%3C%2Fdiv%3E%0A%3Cdiv+class%3Dmakh+%3E%D8%B3%D8%A7%DB%8C%D8%AA+%D8%A2%D8%B2%D9%85%D9%88%D9%86+%D8%AF%DA%A9%D8%AA%D8%B1%DB%8C%3C%2Fdiv%3E%0A%09%09%09%09++%0A%09%09%09%09++%09%3Cdiv+class%3D%22clear%22%3E%3C%2Fdiv%3E%0A%09%09%09%09++%0A%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%09%09%09%09%0A%09%09%09%09'
   42    70        INIT_FCALL_BY_NAME                                       'comment_text'
         71        DO_FCALL                                      0          
   43    72        ECHO                                                     '%09%09++++++++++++%0A%09%09%09%09'
   44    73        FETCH_OBJ_R                                      ~24     !0, 'comment_approved'
         74        IS_EQUAL                                                 ~24, '0'
         75      > JMPZ                                                     ~25, ->77
   45    76    >   ECHO                                                     '%09++++++++++++++++%3Cp+class%3D%27unapproved%27%3E%D9%86%D8%B8%D8%B1+%D8%B4%D9%85%D8%A7+%D8%AF%D8%B1+%D8%A7%D9%86%D8%AA%D8%B8%D8%A7%D8%B1+%D8%AA%D8%A7%DB%8C%DB%8C%D8%AF+%D8%A7%D8%B3%D8%AA.%3C%2Fp%3E%0A%09++++++++++++'
   47    77    >   ECHO                                                     '%09%09%09%09%09%09%09%09%09%0A%09%09%09%09%3C%2Fdiv%3E%3C%21--+%2Fcomment-entry+--%3E%0A%09%0A%09%09%09%3C%2Fdiv%3E%3C%21--+%2F.comment-container+--%3E%0A%09%09%09%0A%09'
   53    78      > RETURN                                                   null

End of function %00custom_comment%2Fin%2FrRGra%3A4%240

Function %00list_pings%2Fin%2FrRGra%3A58%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rRGra
function name:  list_pings
number of ops:  25
compiled vars:  !0 = $comment, !1 = $args, !2 = $depth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   58     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   60     3        FETCH_W                      global              $3      'GLOBALS'
          4        ASSIGN_DIM                                               $3, 'comment'
          5        OP_DATA                                                  !0
   61     6        ECHO                                                     '%09%09%0A%09%09%3Cli+id%3D%22comment-'
   62     7        INIT_FCALL_BY_NAME                                       'comment_ID'
          8        DO_FCALL                                      0          
          9        ECHO                                                     '%22%3E%0A%09%09%09%3Cspan+class%3D%22author%22%3E'
   63    10        INIT_FCALL_BY_NAME                                       'comment_author_link'
         11        DO_FCALL                                      0          
         12        ECHO                                                     '%3C%2Fspan%3E+-+%0A%09%09%09%3Cspan+class%3D%22date%22%3E'
   64    13        INIT_FCALL_BY_NAME                                       'get_comment_date'
         14        INIT_FCALL_BY_NAME                                       'get_option'
         15        SEND_VAL_EX                                              'date_format'
         16        DO_FCALL                                      0  $7      
         17        SEND_VAR_NO_REF_EX                                       $7
         18        DO_FCALL                                      0  $8      
         19        ECHO                                                     $8
         20        ECHO                                                     '%3C%2Fspan%3E%0A%09%09%09%3Cspan+class%3D%22pingcontent%22%3E'
   65    21        INIT_FCALL_BY_NAME                                       'comment_text'
         22        DO_FCALL                                      0          
         23        ECHO                                                     '%3C%2Fspan%3E%0A%09%0A%09'
   68    24      > RETURN                                                   null

End of function %00list_pings%2Fin%2FrRGra%3A58%241

Function %00the_commenter_link%2Fin%2FrRGra%3A72%242:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rRGra
function name:  the_commenter_link
number of ops:  23
compiled vars:  !0 = $commenter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   73     0  E >   INIT_FCALL_BY_NAME                                       'get_comment_author_link'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   74     3        INIT_FCALL_BY_NAME                                       'ereg'
          4        SEND_VAL_EX                                              '%5D%2A+class%3D%5B%5E%3E%5D%2B%3E'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $3      
          7      > JMPZ                                                     $3, ->15
          8    >   INIT_FCALL_BY_NAME                                       'ereg_replace'
          9        SEND_VAL_EX                                              '%28%5D%2A+class%3D%5B%27%22%5D%3F%29'
         10        SEND_VAL_EX                                              '%5C1url+'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $4      
         13        ASSIGN                                                   !0, $4
         14      > JMP                                                      ->21
   75    15    >   INIT_FCALL_BY_NAME                                       'ereg_replace'
         16        SEND_VAL_EX                                              '%28%3Ca+%29%2F'
         17        SEND_VAL_EX                                              '%5C1class%3D%22url+%22'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $6      
         20        ASSIGN                                                   !0, $6
   76    21    >   ECHO                                                     !0
   77    22      > RETURN                                                   null

End of function %00the_commenter_link%2Fin%2FrRGra%3A72%242

Function %00the_commenter_avatar%2Fin%2FrRGra%3A81%243:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rRGra
function name:  the_commenter_avatar
number of ops:  19
compiled vars:  !0 = $args, !1 = $email, !2 = $avatar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   81     0  E >   RECV                                             !0      
   82     1        INIT_FCALL_BY_NAME                                       'get_comment_author_email'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
   83     4        INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 'class%3D%27avatar'
          6        SEND_VAL                                                 'class%3D%27photo+avatar'
          7        INIT_FCALL_BY_NAME                                       'get_avatar'
          8        CAST                                          6  ~5      !1
          9        SEND_VAL_EX                                              ~5
         10        CHECK_FUNC_ARG                                           
         11        FETCH_DIM_FUNC_ARG                               $6      !0, 'avatar_size'
         12        SEND_FUNC_ARG                                            $6
         13        DO_FCALL                                      0  $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !2, $8
   84    17        ECHO                                                     !2
   85    18      > RETURN                                                   null

End of function %00the_commenter_avatar%2Fin%2FrRGra%3A81%243

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.91 ms | 1412 KiB | 19 Q