3v4l.org

run code in 500+ PHP versions simultaneously
<?php $variables['options']['attributes'] = [ 'attribute1' => 'value', 'href' => 'http://www.google.com.mx', 'attribute2' => 'value 2' ]; $attributes = array('href' => '') + $variables['options']['attributes']; print_r($attributes);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W6J8f
function name:  (null)
number of ops:  11
compiled vars:  !0 = $variables, !1 = $attributes
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                          $2      !0, 'options'
          1        ASSIGN_DIM                                                   $2, 'attributes'
    4     2        OP_DATA                                                      <array>
    9     3        FETCH_DIM_R                                          ~4      !0, 'options'
          4        FETCH_DIM_R                                          ~5      ~4, 'attributes'
          5        ADD                                                  ~6      <array>, ~5
          6        ASSIGN                                                       !1, ~6
   11     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.38 ms | 2111 KiB | 14 Q