3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Hitmakers Feat. KNA Connected 你啊好'; $str = mb_convert_encoding($str, 'utf-8'); var_dump(mb_detect_encoding($str)); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qBtTr
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hitmakers+Feat.+KNA+Connected+%E4%BD%A0%E5%95%8A%E5%A5%BD'
    7     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'utf-8'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    8     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'mb_detect_encoding'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.64 ms | 1394 KiB | 19 Q