3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [ [['Name' => 'kumar'],['Name' => 'siva']], [['Name' => 'Arun'],['Name' => 'Prem']] ]; foreach ($a as $i => $group) { $result[$i][] = ['Name' => implode(', ', array_column($group, 'Name'))]; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 14
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/MbG6A
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $group, !2 = $i, !3 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1      > FE_RESET_R                                           $5      !0, ->14
          2    > > FE_FETCH_R                                           ~6      $5, !1, ->14
          3    >   ASSIGN                                                       !2, ~6
    9     4        INIT_FCALL                                                   'array_column'
          5        SEND_VAR                                                     !1
          6        SEND_VAL                                                     'Name'
          7        DO_ICALL                                             $10     
          8        FRAMELESS_ICALL_2                implode             ~11     '%2C+', $10
          9        INIT_ARRAY                                           ~12     ~11, 'Name'
         10        FETCH_DIM_W                                          $8      !3, !2
         11        ASSIGN_DIM                                                   $8
         12        OP_DATA                                                      ~12
    8    13      > JMP                                                          ->2
         14    >   FE_FREE                                                      $5
   11    15        INIT_FCALL                                                   'var_export'
         16        SEND_VAR                                                     !3
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
168.88 ms | 2177 KiB | 15 Q