3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Título ú Nota ó !¡ ! '; $text = preg_replace('/[^a-zA-Z0-9, ]/i','',$text); echo $text; $mystring = ')()&*%#$DR GT^(%(%(*&_{|}{jjkg cde d"'; $find = array ( '#[^a-z0-9\\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/G96Vq
function name:  (null)
number of ops:  19
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%2C+%5D%2Fi'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    5     7        ECHO                                                     !0
    7     8        ASSIGN                                                   !1, '%29%28%29%26%2A%25%23%24DR+GT%5E%28%25%28%25%28%2A%26_%7B%7C%7D%7Bjjkg+cde+d%22'
    9     9        ASSIGN                                                   !2, <array>
   10    10        ASSIGN                                                   !3, <array>
   12    11        INIT_FCALL                                               'preg_replace'
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !3
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !1, $10
   14    17        ECHO                                                     !1
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.52 ms | 1386 KiB | 15 Q