3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.82 ms | 934 KiB | 16 Q