3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'Alemanha' => 1, 'China' => 5, 'EUA' => 13, 'Itália' => 2, 'África do Sul' => 1 ]; uksort( $arr, [new Collator('pt_BR'), 'compare'] ); var_export($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lCDqG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        INIT_FCALL                                               'uksort'
   12     2        SEND_REF                                                 !0
   13     3        NEW                                              $2      'Collator'
          4        SEND_VAL_EX                                              'pt_BR'
          5        DO_FCALL                                      0          
          6        INIT_ARRAY                                       ~4      $2
          7        ADD_ARRAY_ELEMENT                                ~4      'compare'
          8        SEND_VAL                                                 ~4
   11     9        DO_ICALL                                                 
   15    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.89 ms | 999 KiB | 15 Q