3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = array( 'Mykey' => 'MyValue', 'MyOtherKey' => 'MyOtherValue' ); $magic = array_merge(...array_map(null, ...array(array_keys($subject), array_values($subject)))); var_dump($magic);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ofdIc
function name:  (null)
number of ops:  23
compiled vars:  !0 = $subject, !1 = $magic
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_merge'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 null
          4        INIT_FCALL                                               'array_keys'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $3      
          7        INIT_ARRAY                                       ~4      $3
          8        INIT_FCALL                                               'array_values'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ADD_ARRAY_ELEMENT                                ~4      $5
         12        SEND_UNPACK                                              ~4
         13        CHECK_UNDEF_ARGS                                         
         14        DO_ICALL                                         $6      
         15        SEND_UNPACK                                              $6
         16        CHECK_UNDEF_ARGS                                         
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !1, $7
    5    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.54 ms | 1395 KiB | 23 Q