3v4l.org

run code in 300+ 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/pnJep
function name:  (null)
number of ops:  27
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, '%C3%B1'
   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        INIT_FCALL                                               'str_replace'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'n'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $12     
         15        SEND_VAR                                                 $12
         16        DO_ICALL                                                 
   15    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        INIT_FCALL                                               'str_replace'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 'n'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $14     
         24        SEND_VAR                                                 $14
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
260.11 ms | 1395 KiB | 18 Q