3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = array ( 0 => 'test2.jpg', 1 => 'Test10.jpg' ); shuffle($files); sort($files, SORT_FLAG_CASE | SORT_STRING); print_r($files); natcasesort($files); print_r($files);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F9N5q
function name:  (null)
number of ops:  18
compiled vars:  !0 = $files
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'shuffle'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    8     4        INIT_FCALL                                               'sort'
          5        SEND_REF                                                 !0
          6        SEND_VAL                                                 10
          7        DO_ICALL                                                 
    9     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   11    11        INIT_FCALL                                               'natcasesort'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
   12    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.84 ms | 1012 KiB | 17 Q