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"; print_r($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8LSIl
function name:  (null)
number of ops:  15
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, '%0A'
          4        ECHO                                                     ~4
    4     5        ASSIGN_DIM                                       ~5      !0, 4
          6        OP_DATA                                                  'd%0A'
          7        ECHO                                                     ~5
    5     8        ASSIGN_DIM                                       ~6      !0
          9        OP_DATA                                                  'f%0A'
         10        ECHO                                                     ~6
    6    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    7    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.9 ms | 1394 KiB | 15 Q