3v4l.org

run code in 300+ PHP versions simultaneously
<?php $years = array( 1=>2000, 2=>2001, 3=>2002, 4=>2003, 5=>2004, 6=>2005, 7=>2006, 8=>2007, 9=>2008, 10=>2009, 11=>2010, 12=>2011, 13=>2012, 14=>2013, ); var_dump($years); var_dump(rsort($years)); var_dump(krsort($years)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S0EQZ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $years
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   19     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   20     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'rsort'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
   21    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'krsort'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
   23    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.1 ms | 1385 KiB | 19 Q