3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.55 ms | 1394 KiB | 15 Q