3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['1','a','b','c']; echo "$array[2]". "/n"; echo $array [4]= 'd'."/n"; echo $array[]='f'."/n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tdoQ5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_R                                      ~2      !0, 2
          2        CAST                                          6  ~3      ~2
          3        CONCAT                                           ~4      ~3, '%2Fn'
          4        ECHO                                                     ~4
    4     5        ASSIGN_DIM                                       ~5      !0, 4
          6        OP_DATA                                                  'd%2Fn'
          7        ECHO                                                     ~5
    5     8        ASSIGN_DIM                                       ~6      !0
          9        OP_DATA                                                  'f%2Fn'
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1397 KiB | 13 Q