3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2oesf
function name:  (null)
number of ops:  13
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                                               'iconv'
         7        SEND_VAR                                                 !1
         8        SEND_VAL                                                 'UTF-8'
         9        SEND_VAR                                                 !0
        10        DO_ICALL                                         $6      
        11        ASSIGN                                                   !2, $6
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0