3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.72 ms | 1399 KiB | 15 Q