3v4l.org

run code in 300+ 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_reverse($array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f6Pa4
function name:  (null)
number of ops:  14
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
    5     2        CAST                                          8  ~3      <array>
          3        ADD_ARRAY_ELEMENT                                ~2      ~3, 1
    6     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_reverse'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.49 ms | 1394 KiB | 17 Q