3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.02 ms | 1008 KiB | 16 Q