3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( array_combine( ['payment_id', 'package', 'price', 'medium', 'convert_type'], array_slice([0, 1, 2, 3, 4, 5, 6, 7, 8], 1, 5) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HpHuA
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'array_combine'
    5     2        SEND_VAL                                                 <array>
    6     3        INIT_FCALL                                               'array_slice'
          4        SEND_VAL                                                 <array>
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 5
          7        DO_ICALL                                         $0      
          8        SEND_VAR                                                 $0
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                                 
    8    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.38 ms | 1394 KiB | 19 Q