3v4l.org

run code in 300+ PHP versions simultaneously
<?php $collator = new Collator('ru'); $str1 = $getSortKey($str1); $str2 = $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/24vCN
function name:  (null)
number of ops:  20
compiled vars:  !0 = $collator, !1 = $str1, !2 = $getSortKey, !3 = $str2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'Collator'
          1        SEND_VAL_EX                                              'ru'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    5     4        INIT_DYNAMIC_CALL                                        !2
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !1, $7
    6     8        INIT_DYNAMIC_CALL                                        !2
          9        SEND_VAR_EX                                              !3
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !3, $9
    8    12        INIT_FCALL                                               'print_r'
         13        INIT_FCALL                                               'strcmp'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.82 ms | 1398 KiB | 18 Q