3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.3 ms | 1395 KiB | 23 Q