3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mb_strcasecmp($str1, $str2, $encoding = "UTF-8") { return strcmp(mb_strtoupper($str1, $encoding), mb_strtoupper($str2, $encoding)); } echo (bool)mb_strcasecmp('Γ', 'γ');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/65YYE
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'mb_strcasecmp'
          1        SEND_VAL                                                 '%CE%93'
          2        SEND_VAL                                                 '%CE%B3'
          3        DO_FCALL                                      0  $0      
          4        BOOL                                             ~1      $0
          5        ECHO                                                     ~1
          6      > RETURN                                                   1

Function mb_strcasecmp:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/65YYE
function name:  mb_strcasecmp
number of ops:  17
compiled vars:  !0 = $str1, !1 = $str2, !2 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      'UTF-8'
    4     3        INIT_FCALL                                               'strcmp'
          4        INIT_FCALL                                               'mb_strtoupper'
          5        SEND_VAR                                                 !0
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        INIT_FCALL                                               'mb_strtoupper'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $4      
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                         $5      
         15      > RETURN                                                   $5
    5    16*     > RETURN                                                   null

End of function mb_strcasecmp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.03 ms | 1014 KiB | 16 Q