3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ['a' => 1, 'b' => 'x', 'c' => true], ['b' => 'y', 'a' => '2', 'c' => false], ['c' => null, 'b' => 'z', 'a' => 3] ]; var_export( array_combine( array_keys($array[array_key_first($array)]), array_map(null, ...$array) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vEQSS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'var_export'
   10     2        INIT_FCALL                                               'array_combine'
   11     3        INIT_FCALL                                               'array_keys'
          4        INIT_FCALL                                               'array_key_first'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        FETCH_DIM_R                                      ~3      !0, $2
          8        SEND_VAL                                                 ~3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
   12    11        INIT_FCALL                                               'array_map'
         12        SEND_VAL                                                 null
         13        SEND_UNPACK                                              !0
         14        CHECK_UNDEF_ARGS                                         
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
   10    17        DO_ICALL                                         $6      
   12    18        SEND_VAR                                                 $6
    9    19        DO_ICALL                                                 
   14    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.07 ms | 1003 KiB | 18 Q