3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale (LC_COLLATE, 'si'); $m = array('Žunko', 'Červ', 'Milanka', 'Bojanja'); var_dump($m); sort($m, SORT_LOCALE_STRING); var_dump($m); $coll = collator_create('sl_SL'); $coll->sort($m); var_dump($m);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c1VuR
function name:  (null)
number of ops:  26
compiled vars:  !0 = $m, !1 = $coll
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'setlocale'
          1        SEND_VAL                                                 3
          2        SEND_VAL                                                 'si'
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, <array>
    6     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'sort'
          9        SEND_REF                                                 !0
         10        SEND_VAL                                                 5
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   10    15        INIT_FCALL_BY_NAME                                       'collator_create'
         16        SEND_VAL_EX                                              'sl_SL'
         17        DO_FCALL                                      0  $7      
         18        ASSIGN                                                   !1, $7
   11    19        INIT_METHOD_CALL                                         !1, 'sort'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
   13    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.09 ms | 1395 KiB | 19 Q