3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = "Mélanie"; $var = stripAccents($string); echo "<br />".$var; function stripAccents($string){ $texte = 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','C','E','E','E','E','I','I','I','I','N','O','O','O','O','O','U','U','U','U','Y'), $string ); return $texte; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LvK8p
function name:  (null)
number of ops:  8
compiled vars:  !0 = $var, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'M%C3%A9lanie'
    4     1        INIT_FCALL_BY_NAME                                       'stripAccents'
          2        SEND_VAR_EX                                              !1
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !0, $3
    6     5        CONCAT                                           ~5      '%3Cbr+%2F%3E', !0
          6        ECHO                                                     ~5
   16     7      > RETURN                                                   1

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

End of function stripaccents

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.22 ms | 1395 KiB | 15 Q