3v4l.org

run code in 300+ PHP versions simultaneously
<?php function strToNoAccent($var) { $var = str_replace( array( 'à', 'â', 'ä', 'á', 'ã', 'å', 'î', 'ï', 'ì', 'í', 'ô', 'ö', 'ò', 'ó', 'õ', 'ø', 'ù', 'û', 'ü', 'ú', 'é', 'è', 'ê', 'ë', 'ç', 'ÿ', 'ñ', 'À', 'Â', 'Ä', 'Á', 'Ã', 'Å', 'Î', 'Ï', 'Ì', 'Í', 'Ô', 'Ö', 'Ò', 'Ó', 'Õ', 'Ø', 'Ù', 'Û', 'Ü', 'Ú', 'É', 'È', 'Ê', 'Ë', 'Ç', 'Ÿ', 'Ñ', ), array( 'a', 'a', 'a', 'a', 'a', 'a', 'i', 'i', 'i', 'i', 'o', 'o', 'o', 'o', 'o', 'o', 'u', 'u', 'u', 'u', 'e', 'e', 'e', 'e', 'c', 'y', 'n', 'A', 'A', 'A', 'A', 'A', 'A', 'I', 'I', 'I', 'I', 'O', 'O', 'O', 'O', 'O', 'O', 'U', 'U', 'U', 'U', 'E', 'E', 'E', 'E', 'C', 'Y', 'N', ),$var); return mb_strtoupper($var); } $test = "Bééolofja "; echo strToNoAccent($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kBhdI
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   35     0  E >   ASSIGN                                                   !0, 'B%C3%A9%C3%A9olofja+'
   36     1        INIT_FCALL                                               'strtonoaccent'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5      > RETURN                                                   1

Function strtonoaccent:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kBhdI
function name:  strToNoAccent
number of ops:  12
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'str_replace'
    5     2        SEND_VAL                                                 <array>
   19     3        SEND_VAL                                                 <array>
   31     4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
    3     6        ASSIGN                                                   !0, $1
   32     7        INIT_FCALL                                               'mb_strtoupper'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10      > RETURN                                                   $3
   33    11*     > RETURN                                                   null

End of function strtonoaccent

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.69 ms | 1389 KiB | 18 Q