3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.74 ms | 1008 KiB | 17 Q