3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.49 ms | 1394 KiB | 15 Q