3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.75 ms | 1384 KiB | 13 Q