3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $conv = mb_convert_encoding( $bin = hex2bin("fe7ff9cb"), "UTF-8", "CP936" ), mb_check_encoding($bin, "CP936"), bin2hex(mb_convert_encoding($conv, "CP936", "UTF-8")) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Uuh1r
function name:  (null)
number of ops:  28
compiled vars:  !0 = $conv, !1 = $bin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'mb_convert_encoding'
    5     2        INIT_FCALL                                               'hex2bin'
          3        SEND_VAL                                                 'fe7ff9cb'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                           ~3      !1, $2
          6        SEND_VAL                                                 ~3
    6     7        SEND_VAL                                                 'UTF-8'
    7     8        SEND_VAL                                                 'CP936'
          9        DO_ICALL                                         $4      
    4    10        ASSIGN                                           ~5      !0, $4
         11        SEND_VAL                                                 ~5
    9    12        INIT_FCALL                                               'mb_check_encoding'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'CP936'
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
   10    17        INIT_FCALL                                               'bin2hex'
         18        INIT_FCALL                                               'mb_convert_encoding'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 'CP936'
         21        SEND_VAL                                                 'UTF-8'
         22        DO_ICALL                                         $7      
         23        SEND_VAR                                                 $7
         24        DO_ICALL                                         $8      
         25        SEND_VAR                                                 $8
         26        DO_ICALL                                                 
   11    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.3 ms | 1395 KiB | 23 Q