3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collator = new Collator('ru'); $str1 = $collator->getSortKey($str1); $str2 = $collator->getSortKey($str2); print_r(strcmp($str1, $str2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4ZIuJ
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_VAR_EX                                              !1
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
    6     8        INIT_METHOD_CALL                                         !0, 'getSortKey'
          9        SEND_VAR_EX                                              !2
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    8    12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'strcmp'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !2
         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:
164.13 ms | 1395 KiB | 17 Q