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/Yc9hO
function name:  (null)
number of ops:  9
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
   15     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.21 ms | 1392 KiB | 13 Q