3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.45 ms | 1394 KiB | 15 Q