3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.59 ms | 1395 KiB | 23 Q