3v4l.org

run code in 300+ PHP versions simultaneously
<?php // When converting halfwidth kana to JIS, mbfilter use JIS X 0201 kana. // string(22) "1b284931323334351b2842" var_dump(bin2hex(mb_convert_encoding(hex2bin('b1b2b3b4b5'), 'JIS', 'JIS'))); // < 8.0, mb_check_encoding compares before and after conversion to the same encoding. // bool(false) // >= 8.1, it is based only on successful conversion to wchar. // bool(true) 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/BMNs0
function name:  (null)
number of ops:  25
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL                                               'mb_convert_encoding'
          3        INIT_FCALL                                               'hex2bin'
          4        SEND_VAL                                                 'b1b2b3b4b5'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        SEND_VAL                                                 'JIS'
          8        SEND_VAL                                                 'JIS'
          9        DO_ICALL                                         $1      
         10        SEND_VAR                                                 $1
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
   11    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'mb_check_encoding'
         16        INIT_FCALL                                               'hex2bin'
         17        SEND_VAL                                                 'b1b2b3b4b5'
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        SEND_VAL                                                 'JIS'
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.81 ms | 1014 KiB | 18 Q