3v4l.org

run code in 300+ PHP versions simultaneously
<?php $subject = array( 'Mykey' => 'MyValue', 'MyOtherKey' => 'MyOtherValue' ); $magic = array_merge(...array_map(null, 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/5kqYa
function name:  (null)
number of ops:  21
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        SEND_VAR                                                 $3
          8        INIT_FCALL                                               'array_values'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        SEND_UNPACK                                              $5
         14        CHECK_UNDEF_ARGS                                         
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !1, $6
    5    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.77 ms | 1395 KiB | 23 Q