3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function is_role($a) { var_dump($a); } } $wp_roles = 'Test'; $roles = array_filter( array_keys( ['key' => 'test'] ), array( $wp_roles, 'is_role' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CSFeV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $wp_roles, !1 = $roles
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'Test'
    8     1        INIT_FCALL                                               'array_filter'
          2        INIT_FCALL                                               'array_keys'
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        INIT_ARRAY                                       ~4      !0
          7        ADD_ARRAY_ELEMENT                                ~4      'is_role'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
         11      > RETURN                                                   1

Class Test:
Function is_role:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CSFeV
function name:  is_role
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > RETURN                                                   null

End of function is_role

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.74 ms | 1395 KiB | 19 Q