3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [0=>'a',8=>'b',2=>'c',7=>'d',9=>'e',11=>'f']; $array_keys = array_keys($array); array_shift($array); array_pop($array_keys); $array = array_combine ( $array_keys, $array); var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vZQBT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $array, !1 = $array_keys
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'array_shift'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'array_pop'
          9        SEND_REF                                                 !1
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'array_combine'
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !0, $7
    7    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.81 ms | 1394 KiB | 23 Q