3v4l.org

run code in 300+ PHP versions simultaneously
<?php $months = ['jan', 'feb']; $cashUniform = [2000, 1200]; $cashFee = [24000, 34000]; $cashExpenses = [4000, 300]; var_export( array_map( function ($month, $cashUniform, $cashFee, $cashExpenses) { return compact(['month', 'cashUniform', 'cashFee', 'cashExpenses']); }, $months, $cashUniform, $cashFee, $cashExpenses ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bl7fY
function name:  (null)
number of ops:  16
compiled vars:  !0 = $months, !1 = $cashUniform, !2 = $cashFee, !3 = $cashExpenses
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, <array>
    9     3        ASSIGN                                                   !3, <array>
   11     4        INIT_FCALL                                               'var_export'
   12     5        INIT_FCALL                                               'array_map'
   13     6        DECLARE_LAMBDA_FUNCTION                          ~8      [0]
   15     7        SEND_VAL                                                 ~8
   16     8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        SEND_VAR                                                 !2
         11        SEND_VAR                                                 !3
   12    12        DO_ICALL                                         $9      
   16    13        SEND_VAR                                                 $9
   11    14        DO_ICALL                                                 
   18    15      > 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/bl7fY
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $month, !1 = $cashUniform, !2 = $cashFee, !3 = $cashExpenses
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
   14     4        INIT_FCALL                                               'compact'
          5        SEND_VAL                                                 <array>
          6        DO_ICALL                                         $4      
          7      > RETURN                                                   $4
   15     8*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.69 ms | 1007 KiB | 16 Q