3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyArray = array("clientId","clientName","clientAdsress","clientPhone"); $valuesArray = array( "0"=>array("1001","aaaaa","ddddddd","22222222"), "1"=>array("1002","bbbbbb","ddddddd","11111111"), "2"=>array("1003","ccccc","ddddddd","33333333") ); $finalData = array_combine($keyArray, array_map(null, ...$valuesArray)); print_r($finalData);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8g70
function name:  (null)
number of ops:  16
compiled vars:  !0 = $keyArray, !1 = $valuesArray, !2 = $finalData
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'array_combine'
          3        SEND_VAR                                                 !0
          4        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 null
          6        SEND_UNPACK                                              !1
          7        CHECK_UNDEF_ARGS                                         
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
   12    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.84 ms | 1437 KiB | 16 Q