3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [["testA1", "testA2"], ["testA3", "testA4"]]; $b = [["testB1", "testB2"], ["testB3", "testB4"]]; $c = [["testC1", "testC2"], ["testC3", "testC4"]]; $result = []; foreach ($a as $k => $v) { array_push($result, ...$a[$k], ...$b[$k], ...$c[$k]); } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 18
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/rbtTg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $result, !4 = $v, !5 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, <array>
    5     2        ASSIGN                                                       !2, <array>
    7     3        ASSIGN                                                       !3, <array>
    8     4      > FE_RESET_R                                           $10     !0, ->18
          5    > > FE_FETCH_R                                           ~11     $10, !4, ->18
          6    >   ASSIGN                                                       !5, ~11
    9     7        INIT_FCALL                                                   'array_push'
          8        SEND_REF                                                     !3
          9        FETCH_DIM_R                                          ~13     !0, !5
         10        SEND_UNPACK                                                  ~13
         11        FETCH_DIM_R                                          ~14     !1, !5
         12        SEND_UNPACK                                                  ~14
         13        FETCH_DIM_R                                          ~15     !2, !5
         14        SEND_UNPACK                                                  ~15
         15        CHECK_UNDEF_ARGS                                             
         16        DO_ICALL                                                     
    8    17      > JMP                                                          ->5
         18    >   FE_FREE                                                      $10
   11    19        INIT_FCALL                                                   'var_export'
         20        SEND_VAR                                                     !3
         21        DO_ICALL                                                     
         22      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.12 ms | 1892 KiB | 15 Q