3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.17 ms | 1613 KiB | 17 Q