3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "'muito bom parabéns 😤' AND r0_.avaliacao = 'Parabéns 😤'"; $str_encoding = mb_detect_encoding($str, 'auto'); $str_name = iconv($str_encoding, 'UTF-8', $str); var_dump($str_name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JDmlW
function name:  (null)
number of ops:  16
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        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'auto'
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        INIT_FCALL_BY_NAME                                       'iconv'
          7        SEND_VAR_EX                                              !1
          8        SEND_VAL_EX                                              'UTF-8'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $6      
         11        ASSIGN                                                   !2, $6
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.59 ms | 1394 KiB | 17 Q