3v4l.org

run code in 500+ PHP versions simultaneously
<?php // http://gathering.tweakers.net/forum/list_messages/1605981 // Just a char (http://www.fileformat.info/info/unicode/char/f1/index.htm) $char = 'ñ'; // Combining char (http://en.wikipedia.org/wiki/Combining_character) $charCombining = 'ñ'; $str = 'se'.$char.'or'; $strCombining = 'se'.$charCombining.'or'; var_dump($str, str_replace($char, 'n', $str)); var_dump($strCombining, str_replace($char, 'n', $strCombining));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ISU7A
function name:  (null)
number of ops:  21
compiled vars:  !0 = $char, !1 = $charCombining, !2 = $str, !3 = $strCombining
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                       !0, '%C3%B1'
    9     1        ASSIGN                                                       !1, 'n%CC%83'
   11     2        CONCAT                                               ~6      'se', !0
          3        CONCAT                                               ~7      ~6, 'or'
          4        ASSIGN                                                       !2, ~7
   12     5        CONCAT                                               ~9      'se', !1
          6        CONCAT                                               ~10     ~9, 'or'
          7        ASSIGN                                                       !3, ~10
   14     8        INIT_FCALL                                                   'var_dump'
          9        SEND_VAR                                                     !2
         10        FRAMELESS_ICALL_3                str_replace         ~12     !0, 'n'
         11        OP_DATA                                                      !2
         12        SEND_VAL                                                     ~12
         13        DO_ICALL                                                     
   15    14        INIT_FCALL                                                   'var_dump'
         15        SEND_VAR                                                     !3
         16        FRAMELESS_ICALL_3                str_replace         ~14     !0, 'n'
         17        OP_DATA                                                      !3
         18        SEND_VAL                                                     ~14
         19        DO_ICALL                                                     
         20      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.78 ms | 2701 KiB | 14 Q