3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v_4 = [ [1, 2, 3], [4, 5, 6], ]; $v_5 = [ [7, 8, 9], [10, 11, 12], ]; var_export( array_map( fn(...$row) => array_map( fn(...$col) => array_sum($col), ...$row ), $v_4, $v_5 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bBssT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $v_4, !1 = $v_5, !2 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
   12     2        INIT_FCALL                                               'var_export'
   13     3        INIT_FCALL                                               'array_map'
   14     4        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
          5        BIND_LEXICAL                                             ~5, !2
   18     6        SEND_VAL                                                 ~5
   19     7        SEND_VAR                                                 !0
   20     8        SEND_VAR                                                 !1
   13     9        DO_ICALL                                         $6      
   20    10        SEND_VAR                                                 $6
   12    11        DO_ICALL                                                 
   22    12      > 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/bBssT
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $row, !1 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV_VARIADIC                                    !0      
          1        BIND_STATIC                                              !1
   15     2        INIT_FCALL                                               'array_map'
   16     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        SEND_VAL                                                 ~2
   17     5        SEND_UNPACK                                              !0
          6        CHECK_UNDEF_ARGS                                         
   15     7        DO_ICALL                                         $3      
   17     8      > RETURN                                                   $3
   18     9*     > RETURN                                                   null


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

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.83 ms | 1008 KiB | 16 Q