3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['alpha', 1, 2, 3, 4, 5], ['beta', 1, 2, 3, 4, 5], ['gamma', 1, 2, 3, 4, 5], ['delta', 1, 2, 3, 4, 5] ]; var_export( array_map(fn(...$col) => is_numeric($col[0]) ? array_sum($col) : '', ...$arr) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TDgBk
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'var_export'
   11     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
   10     9        DO_ICALL                                                 
   12    10      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TDgBk
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $col
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV_VARIADIC                                    !0      
          1        INIT_FCALL                                               'is_numeric'
          2        FETCH_DIM_R                                      ~1      !0, 0
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->11
          6    >   INIT_FCALL                                               'array_sum'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        QM_ASSIGN                                        ~4      $3
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~4      ''
         12    > > RETURN                                                   ~4
         13*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.33 ms | 1014 KiB | 17 Q