3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '¡ÉQuÁÉÍÓÚ fríoÍ!'; $text = str_replace(array('¡','Á','É','Í','Ó','Ú'), array('','á','é','í','ó','ú'), $text); $text = preg_replace('/[^a-zA-Z0-9áéíóúñ\', ]/i','',$text); echo $text; die;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/FXOos
function name:  (null)
number of ops:  16
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C2%A1%C3%89Qu%C3%81%C3%89%C3%8D%C3%93%C3%9A+fr%C3%ADo%C3%8D%21'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 <array>
          3        SEND_VAL                                                 <array>
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    6     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA%C3%B1%27%2C+%5D%2Fi'
          9        SEND_VAL                                                 ''
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        ASSIGN                                                   !0, $4
    8    13        ECHO                                                     !0
    9    14      > EXIT                                                     
         15*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.11 ms | 1386 KiB | 17 Q