3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['test'] = array(1,2); $b = &$a['test']; $b[0] = 3; $c = $a; $c['test'][1] = 3; print_r($a); print_r($b); print_r($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jSHMk
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 'test'
          2        OP_DATA                                                  <array>
    5     3        FETCH_DIM_W                                      $5      !0, 'test'
          4        ASSIGN_REF                                               !1, $5
    6     5        ASSIGN_DIM                                               !1, 0
          6        OP_DATA                                                  3
    8     7        ASSIGN                                                   !2, !0
   10     8        FETCH_DIM_W                                      $9      !2, 'test'
          9        ASSIGN_DIM                                               $9, 1
         10        OP_DATA                                                  3
   12    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   13    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   14    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.13 ms | 1395 KiB | 15 Q