3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function foo() { return call_user_func_array([$this, 'foo'], func_get_args()); } } $test = new Test(); $test->foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4OQfp
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INIT_METHOD_CALL                                         !0, 'foo'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4OQfp
function name:  foo
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_THIS                                       ~0      
          1        INIT_ARRAY                                       ~1      ~0
          2        ADD_ARRAY_ELEMENT                                ~1      'foo'
          3        INIT_USER_CALL                                0          'call_user_func_array', ~1
          4        FUNC_GET_ARGS                                    ~2      
          5        SEND_ARRAY                                               ~2
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
    6     9*     > RETURN                                                   null

End of function foo

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.93 ms | 1394 KiB | 13 Q