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/I5VUm
function name:  (null)
number of ops:  17
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                                      ~5      !0, 2
          5        ASSIGN_DIM                                               !1
          6        OP_DATA                                                  ~5
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10        FETCH_DIM_R                                      ~8      !0, 3
         11        ASSIGN_DIM                                               !1
         12        OP_DATA                                                  ~8
    7    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.41 ms | 1394 KiB | 15 Q