3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = ["10100153", "2007", "350", "804082", "WW006", "WHT/NNY/OXGM", "35/38", "804082 WW00635/38", "0,00138857", "Champion 3pk Quarter Socks"]; $numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; $keys = ["Value", "Number"]; var_export( array_map(function(...$data) use ($keys) { return array_combine($keys, $data); }, $values, $numbers) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4KuCT
function name:  (null)
number of ops:  14
compiled vars:  !0 = $values, !1 = $numbers, !2 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
    7     3        INIT_FCALL                                               'var_export'
    8     4        INIT_FCALL                                               'array_map'
          5        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
          6        BIND_LEXICAL                                             ~6, !2
   10     7        SEND_VAL                                                 ~6
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
    8    10        DO_ICALL                                         $7      
   10    11        SEND_VAR                                                 $7
    7    12        DO_ICALL                                                 
   11    13      > 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/4KuCT
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $data, !1 = $keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_VARIADIC                                    !0      
          1        BIND_STATIC                                              !1
    9     2        INIT_FCALL                                               'array_combine'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
   10     7*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.95 ms | 1007 KiB | 16 Q