3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['test'] = array(1,2); $b[0] = $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/SCHvM
function name:  (null)
number of ops:  22
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_R                                      ~6      !0, 'test'
          4        ASSIGN_DIM                                               !1, 0
          5        OP_DATA                                                  ~6
    6     6        ASSIGN_DIM                                               !1, 0
          7        OP_DATA                                                  3
    8     8        ASSIGN                                                   !2, !0
   10     9        FETCH_DIM_W                                      $9      !2, 'test'
         10        ASSIGN_DIM                                               $9, 1
         11        OP_DATA                                                  3
   12    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   13    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   14    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.42 ms | 1395 KiB | 15 Q