3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ ! '; $text = preg_replace('/[^a-zA-Z0-9\', ]/i','',$text); $text = preg_replace('/[áéíóúñ]/i','_',$text); echo $text; $mystring = 'Título ú Nota ó !¡ ! áéíóúñ )()&*%#$DR GT^(%(%(*&_{|}{jjkg cde d"'; $find = array ( '#[^a-z0-99áéíóúñ\\s]#is', '#\\s#' ); $replace = array ( '', ' ' ); $mystring = preg_replace ( $find, $replace, $mystring ); echo $mystring;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sXbNN
function name:  (null)
number of ops:  25
compiled vars:  !0 = $text, !1 = $mystring, !2 = $find, !3 = $replace
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'T%C3%ADtulo+%C3%BA+Nota+%C3%B3+%21%C2%A1++%21++'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9%27%2C+%5D%2Fi'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    4     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5B%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%B1%5D%2Fi'
          9        SEND_VAL                                                 '_'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !0, $7
    6    13        ECHO                                                     !0
    8    14        ASSIGN                                                   !1, 'T%C3%ADtulo+%C3%BA+Nota+%C3%B3+%21%C2%A1++%21+%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%B1++%29%28%29%26%2A%25%23%24DR+GT%5E%28%25%28%25%28%2A%26_%7B%7C%7D%7Bjjkg+cde+d%22'
   10    15        ASSIGN                                                   !2, <array>
   11    16        ASSIGN                                                   !3, <array>
   13    17        INIT_FCALL                                               'preg_replace'
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !3
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $12     
         22        ASSIGN                                                   !1, $12
   15    23        ECHO                                                     !1
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.66 ms | 1395 KiB | 15 Q