3v4l.org

run code in 300+ PHP versions simultaneously
<?php header( 'Content-type: text/plain' ); $a = array(); $a['foo'][]['bar'] = 1; $a['foo'][]['bar'] = 2; var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cDX4s
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+text%2Fplain'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, <array>
    4     4        FETCH_DIM_W                                      $3      !0, 'foo'
          5        FETCH_DIM_W                                      $4      $3
          6        ASSIGN_DIM                                               $4, 'bar'
          7        OP_DATA                                                  1
    5     8        FETCH_DIM_W                                      $6      !0, 'foo'
          9        FETCH_DIM_W                                      $7      $6
         10        ASSIGN_DIM                                               $7, 'bar'
         11        OP_DATA                                                  2
    6    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:
158.6 ms | 1398 KiB | 17 Q