3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=[1,2,3,4,5]; $b=[2016, 2017, 2018, 2019, 2020]; $keys = range("A", chr(64+count($a))); $c = array_values(array_merge_recursive(array_combine($keys,$a),array_combine($keys,$b))); Var_dump($c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qHCGI
function name:  (null)
number of ops:  32
compiled vars:  !0 = $a, !1 = $b, !2 = $keys, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'range'
          3        SEND_VAL                                                 'A'
          4        INIT_FCALL                                               'chr'
          5        COUNT                                            ~6      !0
          6        ADD                                              ~7      64, ~6
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !2, $9
    7    12        INIT_FCALL                                               'array_values'
         13        INIT_FCALL                                               'array_merge_recursive'
         14        INIT_FCALL                                               'array_combine'
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        INIT_FCALL                                               'array_combine'
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $12     
         23        SEND_VAR                                                 $12
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
         26        DO_ICALL                                         $14     
         27        ASSIGN                                                   !3, $14
    8    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !3
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.19 ms | 1010 KiB | 19 Q