3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = range(1, 10); $b = range('a', 'f'); $c = range('A', 'B'); $output = []; foreach ([$a, $b, $c] as $i => $array) { foreach ($array as $k => $v) { $output[$k][$i] = $v; } } var_export(implode(array_merge(...$output)));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 31
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 31
Branch analysis from position: 21
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 29
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 29
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/6mZmJ
function name:  (null)
number of ops:  41
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $output, !4 = $array, !5 = $i, !6 = $v, !7 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     1
          2        SEND_VAL                                                     10
          3        DO_ICALL                                             $8      
          4        ASSIGN                                                       !0, $8
    4     5        INIT_FCALL                                                   'range'
          6        SEND_VAL                                                     'a'
          7        SEND_VAL                                                     'f'
          8        DO_ICALL                                             $10     
          9        ASSIGN                                                       !1, $10
    5    10        INIT_FCALL                                                   'range'
         11        SEND_VAL                                                     'A'
         12        SEND_VAL                                                     'B'
         13        DO_ICALL                                             $12     
         14        ASSIGN                                                       !2, $12
    7    15        ASSIGN                                                       !3, <array>
    8    16        INIT_ARRAY                                           ~15     !0
         17        ADD_ARRAY_ELEMENT                                    ~15     !1
         18        ADD_ARRAY_ELEMENT                                    ~15     !2
         19      > FE_RESET_R                                           $16     ~15, ->31
         20    > > FE_FETCH_R                                           ~17     $16, !4, ->31
         21    >   ASSIGN                                                       !5, ~17
    9    22      > FE_RESET_R                                           $19     !4, ->29
         23    > > FE_FETCH_R                                           ~20     $19, !6, ->29
         24    >   ASSIGN                                                       !7, ~20
   10    25        FETCH_DIM_W                                          $22     !3, !7
         26        ASSIGN_DIM                                                   $22, !5
         27        OP_DATA                                                      !6
    9    28      > JMP                                                          ->23
         29    >   FE_FREE                                                      $19
    8    30      > JMP                                                          ->20
         31    >   FE_FREE                                                      $16
   13    32        INIT_FCALL                                                   'var_export'
         33        INIT_FCALL                                                   'array_merge'
         34        SEND_UNPACK                                                  !3
         35        CHECK_UNDEF_ARGS                                             
         36        DO_ICALL                                             $24     
         37        FRAMELESS_ICALL_1                implode             ~25     $24
         38        SEND_VAL                                                     ~25
         39        DO_ICALL                                                     
         40      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.47 ms | 1861 KiB | 16 Q