3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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]\w/u', '', $str); print($str_name);
based on cuC73
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/J310o
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, '+muito+bom+parab%C3%A9ns+%F0%9F%98%A4+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                                               'iconv'
         8        SEND_VAR                                                 !1
         9        SEND_VAL                                                 'UTF-8'
        10        SEND_VAR                                                 !0
        11        DO_ICALL                                         $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%5Cw%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 7.3.0