3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.22 ms | 2140 KiB | 16 Q