3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'a10']; $b = ['b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'b7', 'b8', 'b9', 'b10']; $c = ['c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8', 'c9', 'c10']; var_export( array_map( fn(...$cols) => array_merge(...$cols), ...array_map( fn($row) => array_chunk($row, 2), [$a, $b, $c] ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UViRS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $b, !2 = $c
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>
    8     3        INIT_FCALL                                               'var_export'
    9     4        INIT_FCALL                                               'array_map'
   10     5        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
          6        SEND_VAL                                                 ~6
   11     7        INIT_FCALL                                               'array_map'
   12     8        DECLARE_LAMBDA_FUNCTION                          ~7      [1]
          9        SEND_VAL                                                 ~7
   13    10        INIT_ARRAY                                       ~8      !0
         11        ADD_ARRAY_ELEMENT                                ~8      !1
         12        ADD_ARRAY_ELEMENT                                ~8      !2
         13        SEND_VAL                                                 ~8
   11    14        DO_ICALL                                         $9      
   13    15        SEND_UNPACK                                              $9
         16        CHECK_UNDEF_ARGS                                         
    9    17        DO_ICALL                                         $10     
   13    18        SEND_VAR                                                 $10
    8    19        DO_ICALL                                                 
   16    20      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UViRS
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $cols
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_VARIADIC                                    !0      
          1        INIT_FCALL                                               'array_merge'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UViRS
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'array_chunk'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.57 ms | 1014 KiB | 17 Q