3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=array(1,2,3,4,5); print_r($x); $y = $x[2]; print_r($y); $y[] = $x[3]; print_r($y); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s0WRT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        FETCH_DIM_R                                      ~4      !0, 2
          5        ASSIGN                                                   !1, ~4
    5     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    6     9        FETCH_DIM_R                                      ~8      !0, 3
         10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  ~8
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
    8    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.76 ms | 1385 KiB | 15 Q