3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = " 'muito bom parabéns 😤' AND r0_.avaliacao = 'Parabéns 😤' "; $str = 'Muito bom, parabpens.'; $str_encoding = mb_detect_encoding($str, 'auto'); $str_name = iconv($str_encoding, 'UTF-8', $str); $str_name = preg_replace('/[^\p{L}\p{N}\s]/u', '', $str); print($str_name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lroRn
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $str_encoding, !2 = $str_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+%27muito+bom+parab%C3%A9ns+%F0%9F%98%A4%27+AND+r0_.avaliacao+%3D+%27Parab%C3%A9ns+%F0%9F%98%A4%27+'
    4     1        ASSIGN                                                   !0, 'Muito+bom%2C+parabpens.'
    5     2        INIT_FCALL                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'auto'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    6     7        INIT_FCALL_BY_NAME                                       'iconv'
          8        SEND_VAR_EX                                              !1
          9        SEND_VAL_EX                                              'UTF-8'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $7      
         12        ASSIGN                                                   !2, $7
    7    13        INIT_FCALL                                               'preg_replace'
         14        SEND_VAL                                                 '%2F%5B%5E%5Cp%7BL%7D%5Cp%7BN%7D%5Cs%5D%2Fu'
         15        SEND_VAL                                                 ''
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $9      
         18        ASSIGN                                                   !2, $9
    9    19        ECHO                                                     !2
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.22 ms | 1395 KiB | 20 Q