3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('Birnen', 'Äpfel', 'über', 'Über', 'drüber', 'Österreich'); $coll = new Collator('de_DE'); $coll->setAttribute(Collator::NUMERIC_COLLATION, Collator::ON); $coll->setAttribute(Collator::CASE_FIRST, Collator::UPPER_FIRST); $coll->sort($a); print_r($a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RHPkY
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $coll
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        NEW                                              $3      'Collator'
          2        SEND_VAL_EX                                              'de_DE'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $3
    6     5        INIT_METHOD_CALL                                         !1, 'setAttribute'
          6        FETCH_CLASS_CONSTANT                             ~6      'Collator', 'NUMERIC_COLLATION'
          7        SEND_VAL_EX                                              ~6
          8        FETCH_CLASS_CONSTANT                             ~7      'Collator', 'ON'
          9        SEND_VAL_EX                                              ~7
         10        DO_FCALL                                      0          
    7    11        INIT_METHOD_CALL                                         !1, 'setAttribute'
         12        FETCH_CLASS_CONSTANT                             ~9      'Collator', 'CASE_FIRST'
         13        SEND_VAL_EX                                              ~9
         14        FETCH_CLASS_CONSTANT                             ~10     'Collator', 'UPPER_FIRST'
         15        SEND_VAL_EX                                              ~10
         16        DO_FCALL                                      0          
    8    17        INIT_METHOD_CALL                                         !1, 'sort'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0          
   10    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
   12    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.69 ms | 1442 KiB | 14 Q