3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ['b', 'e', 'd', 's'], ['l', 'n'] ]; $result = []; foreach ($array as $i => $row) { foreach ($row as $k => $v) { $result[$k][$i] = $v; } } var_export(array_merge(...$result));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/0Y6Je
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $result, !2 = $row, !3 = $i, !4 = $v, !5 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    9     1        ASSIGN                                                       !1, <array>
   10     2      > FE_RESET_R                                           $8      !0, ->14
          3    > > FE_FETCH_R                                           ~9      $8, !2, ->14
          4    >   ASSIGN                                                       !3, ~9
   11     5      > FE_RESET_R                                           $11     !2, ->12
          6    > > FE_FETCH_R                                           ~12     $11, !4, ->12
          7    >   ASSIGN                                                       !5, ~12
   12     8        FETCH_DIM_W                                          $14     !1, !5
          9        ASSIGN_DIM                                                   $14, !3
         10        OP_DATA                                                      !4
   11    11      > JMP                                                          ->6
         12    >   FE_FREE                                                      $11
   10    13      > JMP                                                          ->3
         14    >   FE_FREE                                                      $8
   15    15        INIT_FCALL                                                   'var_export'
         16        INIT_FCALL                                                   'array_merge'
         17        SEND_UNPACK                                                  !1
         18        CHECK_UNDEF_ARGS                                             
         19        DO_ICALL                                             $16     
         20        SEND_VAR                                                     $16
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.55 ms | 1868 KiB | 15 Q