3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.68 ms | 1013 KiB | 16 Q