3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inc($a, $b, $c) { ++$a; ++$b; ++$c; } $a = 1; $b = 2; $c = 3; $params = array($a, $b, $c); 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/FlT56
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 1
    8     1        ASSIGN                                                   !1, 2
    9     2        ASSIGN                                                   !2, 3
   10     3        INIT_ARRAY                                       ~7      !0
          4        ADD_ARRAY_ELEMENT                                ~7      !1
          5        ADD_ARRAY_ELEMENT                                ~7      !2
          6        ASSIGN                                                   !3, ~7
   11     7        INIT_FCALL                                               'inc'
          8        SEND_ARRAY                                               !3
          9        CHECK_UNDEF_ARGS                                         
         10        DO_FCALL                                      0          
   12    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

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

End of function inc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.37 ms | 1398 KiB | 16 Q