3v4l.org

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

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

End of function inc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.41 ms | 479 KiB | 9 Q