3v4l.org

run code in 200+ PHP versions simultaneously
<?php function func_get_args_in_current_user_can( $capability ) { $args = array_slice( func_get_args(), 1 ); $args = array_merge( array( $capability ), $args ); var_dump($args); } function func_get_args_simplified( $capability ) { $args = func_get_args(); var_dump($args); } // Passing 1 arg. func_get_args_in_current_user_can( 'edit_posts' ); func_get_args_simplified( 'edit_posts' ); // Passing 2 args. func_get_args_in_current_user_can( 'edit_post', 10 ); func_get_args_simplified( 'edit_post', 10 ); // Passing 3 args. func_get_args_in_current_user_can( 'edit_post_meta', 10, 'meta_key' ); func_get_args_simplified( 'edit_post_meta', 10, 'meta_key' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BqYY0
function name:  (null)
number of ops:  25
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  15     0  E >   INIT_FCALL                                               'func_get_args_in_current_user_can'
         1        SEND_VAL                                                 'edit_posts'
         2        DO_FCALL                                      0          
  16     3        INIT_FCALL                                               'func_get_args_simplified'
         4        SEND_VAL                                                 'edit_posts'
         5        DO_FCALL                                      0          
  19     6        INIT_FCALL                                               'func_get_args_in_current_user_can'
         7        SEND_VAL                                                 'edit_post'
         8        SEND_VAL                                                 10
         9        DO_FCALL                                      0          
  20    10        INIT_FCALL                                               'func_get_args_simplified'
        11        SEND_VAL                                                 'edit_post'
        12        SEND_VAL                                                 10
        13        DO_FCALL                                      0          
  23    14        INIT_FCALL                                               'func_get_args_in_current_user_can'
        15        SEND_VAL                                                 'edit_post_meta'
        16        SEND_VAL                                                 10
        17        SEND_VAL                                                 'meta_key'
        18        DO_FCALL                                      0          
  24    19        INIT_FCALL                                               'func_get_args_simplified'
        20        SEND_VAL                                                 'edit_post_meta'
        21        SEND_VAL                                                 10
        22        SEND_VAL                                                 'meta_key'
        23        DO_FCALL                                      0          
        24      > RETURN                                                   1

Function func_get_args_in_current_user_can:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BqYY0
function name:  func_get_args_in_current_user_can
number of ops:  13
compiled vars:  !0 = $capability, !1 = $args
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   4     1        DECLARE_ANON_INHERITED_CLASS                     :2      
         2        QM_ASSIGN                                                !1
   5     3        INIT_FCALL                                               'array_merge'
         4        INIT_ARRAY                                       ~4      !0
         5        SEND_VAL                                                 ~4
         6        SEND_VAR                                                 !1
         7        DO_ICALL                                         $5      
         8        QM_ASSIGN                                                !1
   6     9        INIT_FCALL                                               'var_dump'
        10        SEND_VAR                                                 !1
        11        DO_ICALL                                                 
   7    12      > RETURN                                                   null

End of function func_get_args_in_current_user_can

Function func_get_args_simplified:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BqYY0
function name:  func_get_args_simplified
number of ops:  7
compiled vars:  !0 = $capability, !1 = $args
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   9     0  E >   RECV                                             !0      
  10     1        DECLARE_ANON_INHERITED_CLASS                     :2      
         2        QM_ASSIGN                                                !1
  11     3        INIT_FCALL                                               'var_dump'
         4        SEND_VAR                                                 !1
         5        DO_ICALL                                                 
  12     6      > RETURN                                                   null

End of function func_get_args_simplified

Generated using Vulcan Logic Dumper, using php 7.4.0