3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collator = new Collator('ru'); $str1 = $collator->getSortKey('Abc'); $str2 = $collator->getSortKey('Абв'); var_dump(strcmp('Abc', 'Абв'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XEIC7
function name:  (null)
number of ops:  20
compiled vars:  !0 = $collator, !1 = $str1, !2 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'Collator'
          1        SEND_VAL_EX                                              'ru'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    5     4        INIT_METHOD_CALL                                         !0, 'getSortKey'
          5        SEND_VAL_EX                                              'Abc'
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
    6     8        INIT_METHOD_CALL                                         !0, 'getSortKey'
          9        SEND_VAL_EX                                              '%D0%90%D0%B1%D0%B2'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    8    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'strcmp'
         14        SEND_VAL                                                 'Abc'
         15        SEND_VAL                                                 '%D0%90%D0%B1%D0%B2'
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.12 ms | 1395 KiB | 17 Q