3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ['a','b'], ['c','d'], ['e','f'], ]; var_export( array_merge( ...array_map( 'array_fill_keys', $arr, array_keys($arr) ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EKEa3
function name:  (null)
number of ops:  17
compiled vars:  !0 = $arr
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_merge'
   11     3        INIT_FCALL                                               'array_map'
   12     4        SEND_VAL                                                 'array_fill_keys'
   13     5        SEND_VAR                                                 !0
   14     6        INIT_FCALL                                               'array_keys'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
   11    10        DO_ICALL                                         $3      
   14    11        SEND_UNPACK                                              $3
         12        CHECK_UNDEF_ARGS                                         
   10    13        DO_ICALL                                         $4      
   14    14        SEND_VAR                                                 $4
    9    15        DO_ICALL                                                 
   17    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.38 ms | 1002 KiB | 17 Q