3v4l.org

run code in 300+ PHP versions simultaneously
<?php $type = array('Type 1','Type 2','Type 3',' Type 4','Type 5'); $desc = array('Description 1','Description 2','Description 3','Description 4','Description 5'); $brand = array('Brand 1','Brand 2','Brand 3','Brand 4','Brand 5'); $model = array('Model 1','Model 2','Model 3','Model 4','Model 5'); $res = array_map(function(...$val) {return $val;}, $type, $desc, $brand, $model); print_r($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vEQ5T
function name:  (null)
number of ops:  17
compiled vars:  !0 = $type, !1 = $desc, !2 = $brand, !3 = $model, !4 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    6     3        ASSIGN                                                   !3, <array>
    8     4        INIT_FCALL                                               'array_map'
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FvEQ5T%3A8%240'
          6        SEND_VAL                                                 ~9
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !4, $10
    9    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FvEQ5T%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vEQ5T
function name:  {closure}
number of ops:  3
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_VARIADIC                                    !0      
          1      > RETURN                                                   !0
          2*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FvEQ5T%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.77 ms | 1395 KiB | 17 Q