3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'test'; $tab = array(); $tab['aaa'] = &$a; print_r((array) $tab);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JNEDC
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a, !1 = $tab
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'test'
    6     1        ASSIGN                                                   !1, <array>
    7     2        FETCH_DIM_W                                      $4      !1, 'aaa'
          3        ASSIGN_REF                                               $4, !0
    9     4        INIT_FCALL                                               'print_r'
          5        CAST                                          7  ~6      !1
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1385 KiB | 15 Q