3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.2 ms | 1395 KiB | 15 Q