3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8_string = "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/"; // $utf8_string = "\x5A\x6F\xC3\xAB"; // 'Zoƫ' in UTF-8 $utf16_string = UConverter::transcode($utf8_string, 'UTF-16BE', 'UTF-8'); // echo bin2hex($utf16_string), "\n"; echo $utf16_string;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRWbe
function name:  (null)
number of ops:  9
compiled vars:  !0 = $utf8_string, !1 = $utf16_string
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'
    6     1        INIT_STATIC_METHOD_CALL                                  'UConverter', 'transcode'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              'UTF-16BE'
          4        SEND_VAL_EX                                              'UTF-8'
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !1, $3
    8     7        ECHO                                                     !1
    9     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.91 ms | 1000 KiB | 13 Q