3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo( &$arg1, &$arg2 ) { var_dump( $arg1, $arg2 ); } $a = 1; $b = 2; call_user_func_array( 'foo', array( &$a, &$b ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZfMrf
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                       !0, 1
    6     1        ASSIGN                                                       !1, 2
    7     2        INIT_FCALL                                                   'foo'
          3        INIT_ARRAY                                           ~4      !0
          4        ADD_ARRAY_ELEMENT                                    ~4      !1
          5        SEND_ARRAY                                                   ~4
          6        CHECK_UNDEF_ARGS                                             
          7        DO_FCALL                                          1          
          8      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZfMrf
function name:  foo
number of ops:  7
compiled vars:  !0 = $arg1, !1 = $arg2
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    3     2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAR                                                     !0
          4        SEND_VAR                                                     !1
          5        DO_ICALL                                                     
    4     6      > RETURN                                                       null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.2 ms | 2543 KiB | 15 Q