3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
11.72 ms | 407 KiB | 7 Q