3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A {public function test($a) {return $a;}} echo call_user_func_array([new A, 'test'], [1, 2, 3]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lJpkZ
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $0      'A'
          1        DO_FCALL                                          0          
          2        INIT_ARRAY                                           ~2      $0
          3        ADD_ARRAY_ELEMENT                                    ~2      'test'
          4        INIT_USER_CALL                                    0          'call_user_func_array', ~2
          5        SEND_ARRAY                                                   <array>
          6        CHECK_UNDEF_ARGS                                             
          7        DO_FCALL                                          1  $3      
          8        ECHO                                                         $3
          9      > RETURN                                                       1

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

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
224.01 ms | 2681 KiB | 13 Q