3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://en.wikipedia.org/wiki/Dotted_and_dotless_I //var_dump(mb_strtolower('I')); // should be "ı" //var_dump(mb_strtolower('İ')); // should be "i" $coll1 = collator_create( 'de' ); var_dump(collator_compare($coll1,'I','İ')); $coll2 = collator_create( 'de' ); var_dump(collator_compare($coll2,'ß','ss')); $coll3 = collator_create( 'de' ); var_dump(collator_compare($coll3,mb_strtolower('ß'),mb_strtolower('SS')));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jR9vD
function name:  (null)
number of ops:  43
compiled vars:  !0 = $coll1, !1 = $coll2, !2 = $coll3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                       'collator_create'
          1        SEND_VAL_EX                                              'de'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
    8     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL_BY_NAME                                       'collator_compare'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              'I'
          8        SEND_VAL_EX                                              '%C4%B0'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
   10    12        INIT_FCALL_BY_NAME                                       'collator_create'
         13        SEND_VAL_EX                                              'de'
         14        DO_FCALL                                      0  $7      
         15        ASSIGN                                                   !1, $7
   11    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL_BY_NAME                                       'collator_compare'
         18        SEND_VAR_EX                                              !1
         19        SEND_VAL_EX                                              '%C3%9F'
         20        SEND_VAL_EX                                              'ss'
         21        DO_FCALL                                      0  $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
   13    24        INIT_FCALL_BY_NAME                                       'collator_create'
         25        SEND_VAL_EX                                              'de'
         26        DO_FCALL                                      0  $11     
         27        ASSIGN                                                   !2, $11
   14    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL_BY_NAME                                       'collator_compare'
         30        SEND_VAR_EX                                              !2
         31        INIT_FCALL                                               'mb_strtolower'
         32        SEND_VAL                                                 '%C3%9F'
         33        DO_ICALL                                         $13     
         34        SEND_VAR_NO_REF_EX                                       $13
         35        INIT_FCALL                                               'mb_strtolower'
         36        SEND_VAL                                                 'SS'
         37        DO_ICALL                                         $14     
         38        SEND_VAR_NO_REF_EX                                       $14
         39        DO_FCALL                                      0  $15     
         40        SEND_VAR                                                 $15
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.24 ms | 1396 KiB | 17 Q