3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function ddd() { echo "dddd", "\n"; } } $d = new a(); call_user_func(array($d, 'test')); class b { private function ddd() { echo "dddd", "\n"; } } $e = new b(); call_user_func(array($e, 'test'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B74Lp
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_ARRAY                                       ~5      !0
          4        ADD_ARRAY_ELEMENT                                ~5      'test'
          5        INIT_USER_CALL                                0          'call_user_func', ~5
          6        DO_FCALL                                      0          
   20     7        NEW                                              $7      'b'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $7
   21    10        INIT_ARRAY                                       ~10     !1
         11        ADD_ARRAY_ELEMENT                                ~10     'test'
         12        INIT_USER_CALL                                0          'call_user_func', ~10
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

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

End of function ddd

End of class a.

Class b:
Function ddd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B74Lp
function name:  ddd
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'dddd'
          1        ECHO                                                     '%0A'
   17     2      > RETURN                                                   null

End of function ddd

End of class b.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.68 ms | 1394 KiB | 13 Q