3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ ["name"=>"col11", "type"=>"varchar"], ["name"=>"col2", "type"=>"int"] ]; $arr2 = [ ["name"=>"col1", "type"=>"varchar"], ["name"=>"col2", "type"=>"int"] , ["name"=>"col3", "type"=>"date"] ]; $arr3 = [ ["name"=>"col1", "type"=>"varchar"], ["name"=>"col3", "type"=>"int"] ]; $arrays = [$arr1, $arr2, $arr3]; $arrays_extended = []; foreach($arrays as $row => $innerArray){ foreach($innerArray as $innerRow => $value){ array_push($arrays_extended, $value); } } var_dump(array_unique($arrays_extended));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/1okcm
function name:  (null)
number of ops:  29
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $arr3, !3 = $arrays, !4 = $arrays_extended, !5 = $innerArray, !6 = $row, !7 = $value, !8 = $innerRow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, <array>
   11     2        ASSIGN                                                   !2, <array>
   16     3        INIT_ARRAY                                       ~12     !0
          4        ADD_ARRAY_ELEMENT                                ~12     !1
          5        ADD_ARRAY_ELEMENT                                ~12     !2
          6        ASSIGN                                                   !3, ~12
   17     7        ASSIGN                                                   !4, <array>
   19     8      > FE_RESET_R                                       $15     !3, ->21
          9    > > FE_FETCH_R                                       ~16     $15, !5, ->21
         10    >   ASSIGN                                                   !6, ~16
   20    11      > FE_RESET_R                                       $18     !5, ->19
         12    > > FE_FETCH_R                                       ~19     $18, !7, ->19
         13    >   ASSIGN                                                   !8, ~19
   21    14        INIT_FCALL                                               'array_push'
         15        SEND_REF                                                 !4
         16        SEND_VAR                                                 !7
         17        DO_ICALL                                                 
   20    18      > JMP                                                      ->12
         19    >   FE_FREE                                                  $18
   19    20      > JMP                                                      ->9
         21    >   FE_FREE                                                  $15
   24    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'array_unique'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                         $22     
         26        SEND_VAR                                                 $22
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1013 KiB | 16 Q