3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aImages = array ( '1___3tones123.jpg' => '3tones123.jpg', '10___20002020-BLUE.jpg' => '20002020-BLUE.jpg', '20___bigeyes01.jpg' => 'bigeyes01.jpg', '1___bigeyes02.jpg' => 'bigeyes02.jpg', ); uksort($aImages, 'strnatcmp'); $aImages = array_reverse($aImages, true); print_r($aImages);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/suHpS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $aImages
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'uksort'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'strnatcmp'
          4        DO_ICALL                                                 
   11     5        INIT_FCALL                                               'array_reverse'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
   13    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.01 ms | 1398 KiB | 19 Q