3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( mb_convert_encoding( $bin = hex2bin("d0d1ecb5dac2adfb4cd4ede7f4"), "UTF-8", "CP51932" ), mb_check_encoding($bin, "CP51932") );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AqQn0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $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                                                 'd0d1ecb5dac2adfb4cd4ede7f4'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                           ~2      !0, $1
          6        SEND_VAL                                                 ~2
    6     7        SEND_VAL                                                 'UTF-8'
    7     8        SEND_VAL                                                 'CP51932'
    4     9        DO_ICALL                                         $3      
    7    10        SEND_VAR                                                 $3
    9    11        INIT_FCALL                                               'mb_check_encoding'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 'CP51932'
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
    3    16        DO_ICALL                                                 
   10    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.05 ms | 1461 KiB | 17 Q