3v4l.org

run code in 300+ PHP versions simultaneously
<? /* 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/JBZ0u
function name:  (null)
number of ops:  24
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                                                 
    6     6        INIT_FCALL                                               'ini_set'
          7        SEND_VAL                                                 'display_errors'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'mb_internal_encoding'
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'setlocale'
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 'es_ES.utf8'
         16        SEND_VAL                                                 'Spanish_Spain'
         17        DO_ICALL                                                 
   11    18        ASSIGN                                                   !0, 'autotaller+G%C3%BCelfo'
   13    19        INIT_STATIC_METHOD_CALL                                  'BuscadorTexto', 'normalizarNombre'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
   24    22        ECHO                                                     '%0AOK'
   25    23      > RETURN                                                   1

Class BuscadorTexto:
Function normalizarnombre:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JBZ0u
function name:  normalizarNombre
number of ops:  6
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
   20     5      > RETURN                                                   null

End of function normalizarnombre

End of class BuscadorTexto.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.55 ms | 1396 KiB | 25 Q