3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale('LC_ALL', 'de_DE.utf-8'); $a = ['B' => 3, 'A' => 1, 'Ä' => 2]; ksort($a, SORT_LOCALE_STRING); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2E0aC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 'LC_ALL'
          2        SEND_VAL                                                 'de_DE.utf-8'
          3        DO_ICALL                                                 
    4     4        ASSIGN                                                   !0, <array>
    5     5        INIT_FCALL                                               'ksort'
          6        SEND_REF                                                 !0
          7        SEND_VAL                                                 5
          8        DO_ICALL                                                 
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.67 ms | 1394 KiB | 19 Q