3v4l.org

run code in 300+ PHP versions simultaneously
<?php $u = '孙悟空'; echo iconv(mb_detect_encoding($u), "UTF-8", $u);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n5sKT
function name:  (null)
number of ops:  11
compiled vars:  !0 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%A5%C2%AD%E2%84%A2%C3%A6%E2%80%9A%C5%B8%C3%A7%C2%A9%C2%BA'
    5     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        INIT_FCALL                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR_NO_REF_EX                                       $2
          6        SEND_VAL_EX                                              'UTF-8'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.44 ms | 1394 KiB | 15 Q