3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ 310 => 0, 311 => 0, 312 => 0, 313 => 0, 314 => 0, 315 => 0 ]; $array2 = [ "2019-05-17" => [ 312 => 3000.00 ], "2019-06-20" => [ 312 => 3000.00 ], "2019-06-27" => [ 313 => 5000.00, 315 => 3000.00 ] ]; var_export(array_map(fn($row) => $row += $array1,$array2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L5Dlc
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   25     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'array_map'
          4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        BIND_LEXICAL                                             ~4, !0
          6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > 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/L5Dlc
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $row, !1 = $array1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        ASSIGN_OP                                     1  ~2      !0, !1
          3      > RETURN                                                   ~2
          4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.03 ms | 1011 KiB | 15 Q