3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ems_Dhv_Jugend { public function post_submit_meta_box_fum( WP_Post $post ) { global $action; exit(); $post_type = $post->post_type; $post_type_object = get_post_type_object( $post_type ); $can_publish = current_user_can( $post_type_object->cap->publish_posts ); $args = null; if ( post_type_supports( $post_type, 'revisions' ) && 'auto-draft' != $post->post_status ) { $revisions = wp_get_post_revisions( $post->ID ); // We should aim to show the revisions metabox only when there are revisions. if ( count( $revisions ) > 1 ) { reset( $revisions ); // Reset pointer for key() $args = array( 'revisions_count' => count( $revisions ), 'revision_id' => key( $revisions ) ); add_meta_box( 'revisionsdiv', __( 'Revisions' ), 'post_revisions_meta_box', null, 'normal', 'core' ); } } ?> <div class="submitbox" id="submitpost"> <div id="minor-publishing"> <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> <div style="display:none;"> <?php submit_button( __( 'Save' ), 'button', 'save' ); ?> </div> <div id="minor-publishing-actions"> <div id="save-action"> <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?> <input <?php if ('private' == $post->post_status) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save Draft' ); ?>" class="button" /> <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?> <input type="submit" name="save" id="save-post" value="<?php esc_attr_e( 'Save as Pending' ); ?>" class="button" /> <?php } ?> <span class="spinner"></span> </div> <?php if ( $post_type_object->public ) : ?> <div id="preview-action"> <?php if ( 'publish' == $post->post_status ) { $preview_link = esc_url( get_permalink( $post->ID ) ); $preview_button = __( 'Preview Changes' ); } else { $preview_link = set_url_scheme( get_permalink( $post->ID ) ); $preview_link = esc_url( apply_filters( 'preview_post_link', add_query_arg( 'preview', 'true', $preview_link ) ) ); $preview_button = __( 'Preview' ); } ?> <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview"><?php echo $preview_button; ?></a> <input type="hidden" name="wp-preview" id="wp-preview" value="" /> </div> <?php endif; // public post type ?> <div class="clear"></div> </div> <!-- #minor-publishing-actions --> <div id="misc-publishing-actions"> <div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e( 'Status:' ) ?></label> <span id="post-status-display"> <?php switch ( $post->post_status ) { case 'private': _e( 'Privately Published' ); break; case 'publish': _e( 'Published' ); break; case 'future': _e( 'Scheduled' ); break; case 'pending': _e( 'Pending Review' ); break; case 'draft': case 'auto-draft': _e( 'Draft' ); break; } } } Ems_Dhv_Jugend::post_submit_meta_box_fum(NULL); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k3Wde
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   92     0  E >   INIT_STATIC_METHOD_CALL                                  'Ems_Dhv_Jugend', 'post_submit_meta_box_fum'
          1        SEND_VAL                                                 null
          2        DO_FCALL                                      0          
   93     3      > RETURN                                                   1

Class Ems_Dhv_Jugend:
Function post_submit_meta_box_fum:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/k3Wde
function name:  post_submit_meta_box_fum
number of ops:  193
compiled vars:  !0 = $post, !1 = $action, !2 = $post_type, !3 = $post_type_object, !4 = $can_publish, !5 = $args, !6 = $revisions, !7 = $preview_link, !8 = $preview_button
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        BIND_GLOBAL                                              !1, 'action'
    6     2      > EXIT                                                     
    7     3*       FETCH_OBJ_R                                      ~9      !0, 'post_type'
          4*       ASSIGN                                                   !2, ~9
    8     5*       INIT_FCALL_BY_NAME                                       'get_post_type_object'
          6*       SEND_VAR_EX                                              !2
          7*       DO_FCALL                                      0  $11     
          8*       ASSIGN                                                   !3, $11
    9     9*       INIT_FCALL_BY_NAME                                       'current_user_can'
         10*       CHECK_FUNC_ARG                                           
         11*       FETCH_OBJ_FUNC_ARG                               $13     !3, 'cap'
         12*       FETCH_OBJ_FUNC_ARG                               $14     $13, 'publish_posts'
         13*       SEND_FUNC_ARG                                            $14
         14*       DO_FCALL                                      0  $15     
         15*       ASSIGN                                                   !4, $15
   11    16*       ASSIGN                                                   !5, null
   12    17*       INIT_FCALL_BY_NAME                                       'post_type_supports'
         18*       SEND_VAR_EX                                              !2
         19*       SEND_VAL_EX                                              'revisions'
         20*       DO_FCALL                                      0  $18     
         21*       JMPZ_EX                                          ~19     $18, ->25
         22*       FETCH_OBJ_R                                      ~20     !0, 'post_status'
         23*       IS_NOT_EQUAL                                     ~21     ~20, 'auto-draft'
         24*       BOOL                                             ~19     ~21
         25*       JMPZ                                                     ~19, ->56
   13    26*       INIT_FCALL_BY_NAME                                       'wp_get_post_revisions'
         27*       CHECK_FUNC_ARG                                           
         28*       FETCH_OBJ_FUNC_ARG                               $22     !0, 'ID'
         29*       SEND_FUNC_ARG                                            $22
         30*       DO_FCALL                                      0  $23     
         31*       ASSIGN                                                   !6, $23
   16    32*       COUNT                                            ~25     !6
         33*       IS_SMALLER                                               1, ~25
         34*       JMPZ                                                     ~26, ->56
   17    35*       INIT_FCALL                                               'reset'
         36*       SEND_REF                                                 !6
         37*       DO_ICALL                                                 
   18    38*       COUNT                                            ~28     !6
         39*       INIT_ARRAY                                       ~29     ~28, 'revisions_count'
         40*       INIT_FCALL                                               'key'
         41*       SEND_VAR                                                 !6
         42*       DO_ICALL                                         $30     
         43*       ADD_ARRAY_ELEMENT                                ~29     $30, 'revision_id'
         44*       ASSIGN                                                   !5, ~29
   19    45*       INIT_FCALL_BY_NAME                                       'add_meta_box'
         46*       SEND_VAL_EX                                              'revisionsdiv'
         47*       INIT_FCALL_BY_NAME                                       '__'
         48*       SEND_VAL_EX                                              'Revisions'
         49*       DO_FCALL                                      0  $32     
         50*       SEND_VAR_NO_REF_EX                                       $32
         51*       SEND_VAL_EX                                              'post_revisions_meta_box'
         52*       SEND_VAL_EX                                              null
         53*       SEND_VAL_EX                                              'normal'
         54*       SEND_VAL_EX                                              'core'
         55*       DO_FCALL                                      0          
   24    56*       ECHO                                                     '%09%09%3Cdiv+class%3D%22submitbox%22+id%3D%22submitpost%22%3E%0A%0A%09%09%09%3Cdiv+id%3D%22minor-publishing%22%3E%0A%0A%09%09%09%09'
   29    57*       ECHO                                                     '%09%09%09%09%3Cdiv+style%3D%22display%3Anone%3B%22%3E%0A%09%09%09%09%09'
   30    58*       INIT_FCALL_BY_NAME                                       'submit_button'
         59*       INIT_FCALL_BY_NAME                                       '__'
         60*       SEND_VAL_EX                                              'Save'
         61*       DO_FCALL                                      0  $34     
         62*       SEND_VAR_NO_REF_EX                                       $34
         63*       SEND_VAL_EX                                              'button'
         64*       SEND_VAL_EX                                              'save'
         65*       DO_FCALL                                      0          
   31    66*       ECHO                                                     '%09%09%09%09%3C%2Fdiv%3E%0A%0A%09%09%09%09%3Cdiv+id%3D%22minor-publishing-actions%22%3E%0A%09%09%09%09%09%3Cdiv+id%3D%22save-action%22%3E%0A%09%09%09%09%09%09'
   35    67*       FETCH_OBJ_R                                      ~36     !0, 'post_status'
         68*       IS_NOT_EQUAL                                     ~37     ~36, 'publish'
         69*       JMPZ_EX                                          ~37     ~37, ->73
         70*       FETCH_OBJ_R                                      ~38     !0, 'post_status'
         71*       IS_NOT_EQUAL                                     ~39     ~38, 'future'
         72*       BOOL                                             ~37     ~39
         73*       JMPZ_EX                                          ~37     ~37, ->77
         74*       FETCH_OBJ_R                                      ~40     !0, 'post_status'
         75*       IS_NOT_EQUAL                                     ~41     ~40, 'pending'
         76*       BOOL                                             ~37     ~41
         77*       JMPZ                                                     ~37, ->89
   36    78*       ECHO                                                     '%09%09%09%09%09%09%09%3Cinput+'
         79*       FETCH_OBJ_R                                      ~42     !0, 'post_status'
         80*       IS_EQUAL                                                 ~42, 'private'
         81*       JMPZ                                                     ~43, ->83
         82*       ECHO                                                     'style%3D%22display%3Anone%22'
         83*       ECHO                                                     '+type%3D%22submit%22+name%3D%22save%22+id%3D%22save-post%22+value%3D%22'
         84*       INIT_FCALL_BY_NAME                                       'esc_attr_e'
         85*       SEND_VAL_EX                                              'Save+Draft'
         86*       DO_FCALL                                      0          
         87*       ECHO                                                     '%22+class%3D%22button%22+%2F%3E%0A%09%09%09%09%09%09'
         88*       JMP                                                      ->99
   39    89*       FETCH_OBJ_R                                      ~45     !0, 'post_status'
         90*       IS_EQUAL                                         ~46     ~45, 'pending'
         91*       JMPZ_EX                                          ~46     ~46, ->93
         92*       BOOL                                             ~46     !4
         93*       JMPZ                                                     ~46, ->99
   41    94*       ECHO                                                     '%09%09%09%09%09%09%09%3Cinput+type%3D%22submit%22+name%3D%22save%22+id%3D%22save-post%22+value%3D%22'
         95*       INIT_FCALL_BY_NAME                                       'esc_attr_e'
         96*       SEND_VAL_EX                                              'Save+as+Pending'
         97*       DO_FCALL                                      0          
         98*       ECHO                                                     '%22+class%3D%22button%22+%2F%3E%0A%09%09%09%09%09%09'
   43    99*       ECHO                                                     '%09%09%09%09%09%09%3Cspan+class%3D%22spinner%22%3E%3C%2Fspan%3E%0A%09%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%09%09'
   45   100*       FETCH_OBJ_R                                      ~48     !3, 'public'
        101*       JMPZ                                                     ~48, ->151
   46   102*       ECHO                                                     '%09%09%09%09%09%09%3Cdiv+id%3D%22preview-action%22%3E%0A%09%09%09%09%09%09%09'
   48   103*       FETCH_OBJ_R                                      ~49     !0, 'post_status'
        104*       IS_EQUAL                                                 ~49, 'publish'
        105*       JMPZ                                                     ~50, ->120
   49   106*       INIT_FCALL_BY_NAME                                       'esc_url'
        107*       INIT_FCALL_BY_NAME                                       'get_permalink'
        108*       CHECK_FUNC_ARG                                           
        109*       FETCH_OBJ_FUNC_ARG                               $51     !0, 'ID'
        110*       SEND_FUNC_ARG                                            $51
        111*       DO_FCALL                                      0  $52     
        112*       SEND_VAR_NO_REF_EX                                       $52
        113*       DO_FCALL                                      0  $53     
        114*       ASSIGN                                                   !7, $53
   50   115*       INIT_FCALL_BY_NAME                                       '__'
        116*       SEND_VAL_EX                                              'Preview+Changes'
        117*       DO_FCALL                                      0  $55     
        118*       ASSIGN                                                   !8, $55
        119*       JMP                                                      ->146
   53   120*       INIT_FCALL_BY_NAME                                       'set_url_scheme'
        121*       INIT_FCALL_BY_NAME                                       'get_permalink'
        122*       CHECK_FUNC_ARG                                           
        123*       FETCH_OBJ_FUNC_ARG                               $57     !0, 'ID'
        124*       SEND_FUNC_ARG                                            $57
        125*       DO_FCALL                                      0  $58     
        126*       SEND_VAR_NO_REF_EX                                       $58
        127*       DO_FCALL                                      0  $59     
        128*       ASSIGN                                                   !7, $59
   54   129*       INIT_FCALL_BY_NAME                                       'esc_url'
        130*       INIT_FCALL_BY_NAME                                       'apply_filters'
        131*       SEND_VAL_EX                                              'preview_post_link'
        132*       INIT_FCALL_BY_NAME                                       'add_query_arg'
        133*       SEND_VAL_EX                                              'preview'
        134*       SEND_VAL_EX                                              'true'
        135*       SEND_VAR_EX                                              !7
        136*       DO_FCALL                                      0  $61     
        137*       SEND_VAR_NO_REF_EX                                       $61
        138*       DO_FCALL                                      0  $62     
        139*       SEND_VAR_NO_REF_EX                                       $62
        140*       DO_FCALL                                      0  $63     
        141*       ASSIGN                                                   !7, $63
   55   142*       INIT_FCALL_BY_NAME                                       '__'
        143*       SEND_VAL_EX                                              'Preview'
        144*       DO_FCALL                                      0  $65     
        145*       ASSIGN                                                   !8, $65
   58   146*       ECHO                                                     '%09%09%09%09%09%09%09%3Ca+class%3D%22preview+button%22+href%3D%22'
        147*       ECHO                                                     !7
        148*       ECHO                                                     '%22+target%3D%22wp-preview%22+id%3D%22post-preview%22%3E'
        149*       ECHO                                                     !8
        150*       ECHO                                                     '%3C%2Fa%3E%0A%09%09%09%09%09%09%09%3Cinput+type%3D%22hidden%22+name%3D%22wp-preview%22+id%3D%22wp-preview%22+value%3D%22%22+%2F%3E%0A%09%09%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%09%09'
   62   151*       ECHO                                                     '%09%09%09%09%09%3Cdiv+class%3D%22clear%22%3E%3C%2Fdiv%3E%0A%09%09%09%09%3C%2Fdiv%3E%0A%09%09%09%09%3C%21--+%23minor-publishing-actions+--%3E%0A%0A%09%09%09%09%3Cdiv+id%3D%22misc-publishing-actions%22%3E%0A%0A%09%09%09%09%09%3Cdiv+class%3D%22misc-pub-section+misc-pub-post-status%22%3E%3Clabel+for%3D%22post_status%22%3E'
   68   152*       INIT_FCALL_BY_NAME                                       '_e'
        153*       SEND_VAL_EX                                              'Status%3A'
        154*       DO_FCALL                                      0          
        155*       ECHO                                                     '%3C%2Flabel%3E%0A%3Cspan+id%3D%22post-status-display%22%3E%0A'
   71   156*       FETCH_OBJ_R                                      ~68     !0, 'post_status'
        157*       SWITCH_STRING                                            ~68, [ 'private':->171, 'publish':->175, 'future':->179, 'pending':->183, 'draft':->187, 'auto-draft':->187, ], ->191
   72   158*       CASE                                                     ~68, 'private'
        159*       JMPNZ                                                    ~69, ->171
   75   160*       CASE                                                     ~68, 'publish'
        161*       JMPNZ                                                    ~69, ->175
   78   162*       CASE                                                     ~68, 'future'
        163*       JMPNZ                                                    ~69, ->179
   81   164*       CASE                                                     ~68, 'pending'
        165*       JMPNZ                                                    ~69, ->183
   84   166*       CASE                                                     ~68, 'draft'
        167*       JMPNZ                                                    ~69, ->187
   85   168*       CASE                                                     ~68, 'auto-draft'
        169*       JMPNZ                                                    ~69, ->187
        170*       JMP                                                      ->191
   73   171*       INIT_FCALL_BY_NAME                                       '_e'
        172*       SEND_VAL_EX                                              'Privately+Published'
        173*       DO_FCALL                                      0          
   74   174*       JMP                                                      ->191
   76   175*       INIT_FCALL_BY_NAME                                       '_e'
        176*       SEND_VAL_EX                                              'Published'
        177*       DO_FCALL                                      0          
   77   178*       JMP                                                      ->191
   79   179*       INIT_FCALL_BY_NAME                                       '_e'
        180*       SEND_VAL_EX                                              'Scheduled'
        181*       DO_FCALL                                      0          
   80   182*       JMP                                                      ->191
   82   183*       INIT_FCALL_BY_NAME                                       '_e'
        184*       SEND_VAL_EX                                              'Pending+Review'
        185*       DO_FCALL                                      0          
   83   186*       JMP                                                      ->191
   86   187*       INIT_FCALL_BY_NAME                                       '_e'
        188*       SEND_VAL_EX                                              'Draft'
        189*       DO_FCALL                                      0          
   87   190*       JMP                                                      ->191
        191*       FREE                                                     ~68
   89   192*     > RETURN                                                   null

End of function post_submit_meta_box_fum

End of class Ems_Dhv_Jugend.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.11 ms | 1412 KiB | 17 Q