3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "https://\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/"; 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", "auto"); var_dump(mb_detect_encoding($s));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XOSL0
function name:  (null)
number of ops:  21
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2F%EC%E5%F5%E0%ED%E8%E7%E8%F0%EE%E2%E0%ED%ED%E0%FF-%F8%F2%F3%EA%E0%F2%F3%F0%EA%E024.%F0%F4%2F'
    5     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
    8     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'UTF-8'
         11        SEND_VAL                                                 'auto'
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
   10    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'mb_detect_encoding'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.88 ms | 1007 KiB | 16 Q