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] ]; array_unshift($array); var_export($array); array_unshift($array, null); var_export($array); unset($array[0]); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cetL8
function name:  (null)
number of ops:  25
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                                                   'array_unshift'
          8        SEND_REF                                                     !0
          9        DO_ICALL                                                     
   10    10        INIT_FCALL                                                   'var_export'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
   11    13        INIT_FCALL                                                   'array_unshift'
         14        SEND_REF                                                     !0
         15        SEND_VAL                                                     null
         16        DO_ICALL                                                     
   12    17        INIT_FCALL                                                   'var_export'
         18        SEND_VAR                                                     !0
         19        DO_ICALL                                                     
   13    20        UNSET_DIM                                                    !0, 0
   14    21        INIT_FCALL                                                   'var_export'
         22        SEND_VAR                                                     !0
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.24 ms | 2006 KiB | 15 Q