3v4l.org

run code in 200+ PHP versions simultaneously
<?php $stringA = 'INTËRÑÂTÎÔNÆLÍZÀTIØN'; $stringB = 'Intërñâtîônælízàtiøn'; echo 'strcasecmp():',PHP_EOL; var_dump(strcasecmp($stringA, $stringB) === 0); echo PHP_EOL,'strnatcasecmp():',PHP_EOL; var_dump(strnatcasecmp($stringA, $stringB) === 0); echo PHP_EOL,'str_ireplace():',PHP_EOL; var_dump(str_ireplace($stringA, '', $stringB, $count) === '' && $count === 1); echo PHP_EOL,'preg_match():',PHP_EOL; var_dump(preg_match('`^' . preg_quote($stringA, '`') . '$`i', $stringB) === 1);
based on u8T2L
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 35, Position 2 = 37
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/JOG1e
function name:  (null)
number of ops:  57
compiled vars:  !0 = $stringA, !1 = $stringB, !2 = $count
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'INT%C3%8BR%C3%91%C3%82T%C3%8E%C3%94N%C3%86L%C3%8DZ%C3%80TI%C3%98N'
   4     1        ASSIGN                                                   !1, 'Int%C3%ABr%C3%B1%C3%A2t%C3%AE%C3%B4n%C3%A6l%C3%ADz%C3%A0ti%C3%B8n'
   6     2        ECHO                                                     'strcasecmp%28%29%3A'
         3        ECHO                                                     '%0A'
   7     4        INIT_FCALL                                               'var_dump'
         5        INIT_FCALL                                               'strcasecmp'
         6        SEND_VAR                                                 !0
         7        SEND_VAR                                                 !1
         8        DO_ICALL                                         $5      
         9        IS_NOT_IDENTICAL                                 ~6      $5, 0
        10        SEND_VAL                                                 ~6
        11        DO_ICALL                                                 
   9    12        ECHO                                                     '%0A'
        13        ECHO                                                     'strnatcasecmp%28%29%3A'
        14        ECHO                                                     '%0A'
  10    15        INIT_FCALL                                               'var_dump'
        16        INIT_FCALL                                               'strnatcasecmp'
        17        SEND_VAR                                                 !0
        18        SEND_VAR                                                 !1
        19        DO_ICALL                                         $8      
        20        IS_NOT_IDENTICAL                                 ~9      $8, 0
        21        SEND_VAL                                                 ~9
        22        DO_ICALL                                                 
  12    23        ECHO                                                     '%0A'
        24        ECHO                                                     'str_ireplace%28%29%3A'
        25        ECHO                                                     '%0A'
  13    26        INIT_FCALL                                               'var_dump'
        27        INIT_FCALL                                               'str_ireplace'
        28        SEND_VAR                                                 !0
        29        SEND_VAL                                                 ''
        30        SEND_VAR                                                 !1
        31        SEND_REF                                                 !2
        32        DO_ICALL                                         $11     
        33        IS_NOT_IDENTICAL                                 ~12     $11, ''
        34      > JMPZ_EX                                          ~12     ~12, ->37
        35    >   IS_NOT_IDENTICAL                                 ~13     !2, 1
        36        BOOL                                             ~12     ~13
        37    >   SEND_VAL                                                 ~12
        38        DO_ICALL                                                 
  15    39        ECHO                                                     '%0A'
        40        ECHO                                                     'preg_match%28%29%3A'
        41        ECHO                                                     '%0A'
  16    42        INIT_FCALL                                               'var_dump'
        43        INIT_FCALL                                               'preg_match'
        44        INIT_FCALL                                               'preg_quote'
        45        SEND_VAR                                                 !0
        46        SEND_VAL                                                 '%60'
        47        DO_ICALL                                         $15     
        48        CONCAT                                           ~16     '%60%5E', $15
        49        CONCAT                                           ~17     ~16, '%24%60i'
        50        SEND_VAL                                                 ~17
        51        SEND_VAR                                                 !1
        52        DO_ICALL                                         $18     
        53        IS_NOT_IDENTICAL                                 ~19     $18, 1
        54        SEND_VAL                                                 ~19
        55        DO_ICALL                                                 
        56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.4.0