3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['extend' => ['owner' => ExtendScope::OWNER_CUSTOM]]; $b = ['extend' => [ 'owner' => ExtendScope::OWNER_SYSTEM, 'is_extend' => true, 'table' => $tableName, 'inherit' => ExtendHelper::BASE_ENUM_VALUE_CLASS ], ]; print_r(array_merge($a, $b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MT49A
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $b, !2 = $tableName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CLASS_CONSTANT                             ~3      'ExtendScope', 'OWNER_CUSTOM'
          1        INIT_ARRAY                                       ~4      ~3, 'owner'
          2        INIT_ARRAY                                       ~5      ~4, 'extend'
          3        ASSIGN                                                   !0, ~5
    5     4        FETCH_CLASS_CONSTANT                             ~7      'ExtendScope', 'OWNER_SYSTEM'
          5        INIT_ARRAY                                       ~8      ~7, 'owner'
          6        ADD_ARRAY_ELEMENT                                ~8      <true>, 'is_extend'
    7     7        ADD_ARRAY_ELEMENT                                ~8      !2, 'table'
    8     8        FETCH_CLASS_CONSTANT                             ~9      'ExtendHelper', 'BASE_ENUM_VALUE_CLASS'
          9        ADD_ARRAY_ELEMENT                                ~8      ~9, 'inherit'
         10        INIT_ARRAY                                       ~10     ~8, 'extend'
    4    11        ASSIGN                                                   !1, ~10
   12    12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'array_merge'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $12     
         17        SEND_VAR                                                 $12
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1395 KiB | 17 Q