3v4l.org

run code in 300+ PHP versions simultaneously
<?php // $s = "\xec\xe5\xf5\xe0\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xed\xed\xe0\xff-\xf8\xf2\xf3\xea\xe0\xf2\xf3\xf0\xea\xe024.\xf0\xf4"; $s = "\xec\xe5\xf5\xe0\xed\xe8\xe7\xe8\xf0\xee\xe2\xe0\xed\xed\xe0\xff"; echo UConverter::transcode($s, 'UTF-16', 'UTF-8')."\n"; // echo iconv("UTF-8", "ISO-8859-1", $s); // echo $utf16_string; echo mb_convert_encoding($s, "UTF-8", "ISO-8859-1"); echo "\n"; var_dump(mb_detect_encoding($s)); echo "\n"; var_dump(mb_detect_encoding($s, ['ISO-8859-1', 'ISO-8859-5', 'UTF-8'])); echo "\n"; var_dump(mb_detect_encoding($s, ['ISO-8859-5', 'UTF-8', 'ISO-8859-1'])); echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOUmf
function name:  (null)
number of ops:  39
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%EC%E5%F5%E0%ED%E8%E7%E8%F0%EE%E2%E0%ED%ED%E0%FF'
    6     1        INIT_STATIC_METHOD_CALL                                  'UConverter', 'transcode'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'UTF-16'
          4        SEND_VAL_EX                                              'UTF-8'
          5        DO_FCALL                                      0  $2      
          6        CONCAT                                           ~3      $2, '%0A'
          7        ECHO                                                     ~3
    9     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'UTF-8'
         11        SEND_VAL                                                 'ISO-8859-1'
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
   10    14        ECHO                                                     '%0A'
   12    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'mb_detect_encoding'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $5      
         19        SEND_VAR                                                 $5
         20        DO_ICALL                                                 
   13    21        ECHO                                                     '%0A'
   14    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL                                               'mb_detect_encoding'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 <array>
         26        DO_ICALL                                         $7      
         27        SEND_VAR                                                 $7
         28        DO_ICALL                                                 
   15    29        ECHO                                                     '%0A'
   16    30        INIT_FCALL                                               'var_dump'
         31        INIT_FCALL                                               'mb_detect_encoding'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 <array>
         34        DO_ICALL                                         $9      
         35        SEND_VAR                                                 $9
         36        DO_ICALL                                                 
   17    37        ECHO                                                     '%0A'
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.4 ms | 1008 KiB | 16 Q