3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.83 ms | 1394 KiB | 15 Q