3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
131.94 ms | 3334 KiB | 13 Q