3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* UTF-8 sin BOM (€ÁÑ) */ header('Content-Type: text/plain; charset=utf-8'); error_reporting(-1); //ini_set('display_errors', true); mb_internal_encoding('UTF-8'); setlocale(LC_CTYPE, 'es_ES.utf8', 'Spanish_Spain'); $cadena = 'autotaller Güelfo'; BuscadorTexto::normalizarNombre($cadena); class BuscadorTexto{ public static function normalizarNombre($cadena){ $cadena = utf8_decode($cadena); $cadena = preg_replace('@[^\\pL\d\s]+@', ' ', $cadena); } } ?> OK
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JcBlD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $cadena
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fplain%3B+charset%3Dutf-8'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'error_reporting'
          4        SEND_VAL                                                 -1
          5        DO_ICALL                                                 
    8     6        INIT_FCALL                                               'mb_internal_encoding'
          7        SEND_VAL                                                 'UTF-8'
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'setlocale'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 'es_ES.utf8'
         12        SEND_VAL                                                 'Spanish_Spain'
         13        DO_ICALL                                                 
   11    14        ASSIGN                                                   !0, 'autotaller+G%C3%BCelfo'
   13    15        INIT_STATIC_METHOD_CALL                                  'BuscadorTexto', 'normalizarNombre'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0          
   24    18        ECHO                                                     '%0AOK'
   25    19      > RETURN                                                   1

Class BuscadorTexto:
Function normalizarnombre:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JcBlD
function name:  normalizarNombre
number of ops:  12
compiled vars:  !0 = $cadena
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        INIT_FCALL                                               'utf8_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   19     5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAL                                                 '%40%5B%5E%5CpL%5Cd%5Cs%5D%2B%40'
          7        SEND_VAL                                                 '+'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
   20    11      > RETURN                                                   null

End of function normalizarnombre

End of class BuscadorTexto.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.98 ms | 1396 KiB | 25 Q