3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$result = array( "\xb0\x00", "\x43\x00", "\x00\x00" ); $result = "\ub000\u4300\u0000"; echo transliterator_transliterate("Hex-Any/Java", $result), "\n"; $encoding = mb_detect_encoding( $result ); echo "encoding is: $encoding"; echo "result is: $result"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uDFT9
function name:  (null)
number of ops:  18
compiled vars:  !0 = $result, !1 = $encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Cub000%5Cu4300%5Cu0000'
    4     1        INIT_FCALL_BY_NAME                                       'transliterator_transliterate'
          2        SEND_VAL_EX                                              'Hex-Any%2FJava'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $3      
          5        ECHO                                                     $3
          6        ECHO                                                     '%0A'
    5     7        INIT_FCALL                                               'mb_detect_encoding'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    6    11        NOP                                                      
         12        FAST_CONCAT                                      ~6      'encoding+is%3A+', !1
         13        ECHO                                                     ~6
    7    14        NOP                                                      
         15        FAST_CONCAT                                      ~7      'result+is%3A+', !0
         16        ECHO                                                     ~7
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.52 ms | 1394 KiB | 15 Q