3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parent = [ 1 => Array ( 0 => 'test1', 1 => 'test2' ), 2 => Array ( 0 => 'test1_1', 1 => 'test2_2' ) ]; var_export( array_combine(array_keys($parent), array_map(null, ...$parent)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lk5gq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $parent
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'var_export'
   15     2        INIT_FCALL                                               'array_combine'
          3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        INIT_FCALL                                               'array_map'
          8        SEND_VAL                                                 null
          9        SEND_UNPACK                                              !0
         10        CHECK_UNDEF_ARGS                                         
         11        DO_ICALL                                         $3      
         12        SEND_VAR                                                 $3
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
   14    15        DO_ICALL                                                 
   16    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.18 ms | 1002 KiB | 17 Q