3v4l.org

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

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.37 ms | 1389 KiB | 16 Q