3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=['z','Z','ą', 'Ą', 'a', 'o','ó','Ó','ł','Ł','ź','A','Ż','ę','e','ć','ń','ś']; $coll = collator_create( 'pl_PL' ); var_export( $a ); collator_sort( $coll, $a ); var_export( $a );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZ3l7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $coll
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL_BY_NAME                                       'collator_create'
          2        SEND_VAL_EX                                              'pl_PL'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
    7     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    8     8        INIT_FCALL_BY_NAME                                       'collator_sort'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0          
    9    12        INIT_FCALL                                               'var_export'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.27 ms | 1394 KiB | 15 Q