3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function x() { return 'x'; } } $a = new A(); var_dump( call_user_func([$a, 'x']), call_user_func([$a, 'y']) );
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/guDVU
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  10     1        NEW                                              $2      :-5
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  11     4        INIT_FCALL                                               'var_dump'
  12     5        INIT_ARRAY                                       ~5      !0
         6        ADD_ARRAY_ELEMENT                                ~5      'x'
         7        INIT_USER_CALL                                0          'call_user_func', ~5
         8        DO_FCALL                                      0  $6      
         9        SEND_VAR                                                 $6
  13    10        INIT_ARRAY                                       ~7      !0
        11        ADD_ARRAY_ELEMENT                                ~7      'y'
        12        INIT_USER_CALL                                0          'call_user_func', ~7
        13        DO_FCALL                                      0  $8      
        14        SEND_VAR                                                 $8
        15        DO_ICALL                                                 
  14    16      > RETURN                                                   1

Class A:
Function x:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/guDVU
function name:  x
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E > > RETURN                                                   'x'
   7     1*     > RETURN                                                   null

End of function x

End of class A.

Generated using Vulcan Logic Dumper, using php 7.3.0