3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array_combine(range(1, 10), range(1, 10)); $array = array(custom => 'custom')+$array; print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CgbcX
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_combine'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 10
          4        DO_ICALL                                         $1      
          5        SEND_VAR                                                 $1
          6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 1
          8        SEND_VAL                                                 10
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                         $3      
         12        ASSIGN                                                   !0, $3
    3    13        FETCH_CONSTANT                                   ~5      'custom'
         14        INIT_ARRAY                                       ~6      'custom', ~5
         15        ADD                                              ~7      ~6, !0
         16        ASSIGN                                                   !0, ~7
    4    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.82 ms | 1395 KiB | 19 Q