3v4l.org

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

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lhkbn
function name:  bar
number of ops:  7
compiled vars:  !0 = $arg, !1 = $arg2, !2 = $arg3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    4     3        ADD                                              ~3      !0, !1
          4        ADD                                              ~4      ~3, !2
          5        ECHO                                                     ~4
    5     6      > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.77 ms | 1393 KiB | 13 Q