3v4l.org

run code in 300+ PHP versions simultaneously
<?php $events = array(); $events['event'][] = array(-1 => 'e'); $events['event'][] = array(1 => 'b'); $events['event'][] = array(-20 => 'b'); $toSort = $events['event']; arsort($toSort); var_dump($toSort); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nUZ5P
function name:  (null)
number of ops:  19
compiled vars:  !0 = $events, !1 = $toSort
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $3      !0, 'event'
          2        ASSIGN_DIM                                               $3
          3        OP_DATA                                                  <array>
    4     4        FETCH_DIM_W                                      $5      !0, 'event'
          5        ASSIGN_DIM                                               $5
          6        OP_DATA                                                  <array>
    5     7        FETCH_DIM_W                                      $7      !0, 'event'
          8        ASSIGN_DIM                                               $7
          9        OP_DATA                                                  <array>
    7    10        FETCH_DIM_R                                      ~9      !0, 'event'
         11        ASSIGN                                                   !1, ~9
    9    12        INIT_FCALL                                               'arsort'
         13        SEND_REF                                                 !1
         14        DO_ICALL                                                 
   11    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1394 KiB | 17 Q