3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [1=>[[100]], 2=>[[200]]]; $ref = &$arr[1]; $ref[] = array_merge([], [101]); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQR4C
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $ref
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        FETCH_DIM_W                                      $3      !0, 1
          2        ASSIGN_REF                                               !1, $3
    5     3        INIT_FCALL                                               'array_merge'
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $6      
          7        ASSIGN_DIM                                               !1
          8        OP_DATA                                                  $6
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.08 ms | 1394 KiB | 17 Q