3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(mb_convert_encoding(mb_convert_encoding("\\", "SJIS", "UTF-8"), "UTF-8", "SJIS")); var_dump(mb_convert_encoding(mb_convert_encoding("\\", "SJIS-win", "UTF-8"), "UTF-8", "SJIS-win")); var_dump(mb_convert_encoding(mb_convert_encoding("~", "SJIS", "UTF-8"), "UTF-8", "SJIS")); var_dump(mb_convert_encoding(mb_convert_encoding("~", "SJIS-win", "UTF-8"), "UTF-8", "SJIS-win"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nSVPB
function name:  (null)
number of ops:  53
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                                                   'mb_convert_encoding'
          3        SEND_VAL                                                     '%5C'
          4        SEND_VAL                                                     'SJIS'
          5        SEND_VAL                                                     'UTF-8'
          6        DO_ICALL                                             $0      
          7        SEND_VAR                                                     $0
          8        SEND_VAL                                                     'UTF-8'
          9        SEND_VAL                                                     'SJIS'
         10        DO_ICALL                                             $1      
         11        SEND_VAR                                                     $1
         12        DO_ICALL                                                     
    4    13        INIT_FCALL                                                   'var_dump'
         14        INIT_FCALL                                                   'mb_convert_encoding'
         15        INIT_FCALL                                                   'mb_convert_encoding'
         16        SEND_VAL                                                     '%5C'
         17        SEND_VAL                                                     'SJIS-win'
         18        SEND_VAL                                                     'UTF-8'
         19        DO_ICALL                                             $3      
         20        SEND_VAR                                                     $3
         21        SEND_VAL                                                     'UTF-8'
         22        SEND_VAL                                                     'SJIS-win'
         23        DO_ICALL                                             $4      
         24        SEND_VAR                                                     $4
         25        DO_ICALL                                                     
    5    26        INIT_FCALL                                                   'var_dump'
         27        INIT_FCALL                                                   'mb_convert_encoding'
         28        INIT_FCALL                                                   'mb_convert_encoding'
         29        SEND_VAL                                                     '%7E'
         30        SEND_VAL                                                     'SJIS'
         31        SEND_VAL                                                     'UTF-8'
         32        DO_ICALL                                             $6      
         33        SEND_VAR                                                     $6
         34        SEND_VAL                                                     'UTF-8'
         35        SEND_VAL                                                     'SJIS'
         36        DO_ICALL                                             $7      
         37        SEND_VAR                                                     $7
         38        DO_ICALL                                                     
    6    39        INIT_FCALL                                                   'var_dump'
         40        INIT_FCALL                                                   'mb_convert_encoding'
         41        INIT_FCALL                                                   'mb_convert_encoding'
         42        SEND_VAL                                                     '%7E'
         43        SEND_VAL                                                     'SJIS-win'
         44        SEND_VAL                                                     'UTF-8'
         45        DO_ICALL                                             $9      
         46        SEND_VAR                                                     $9
         47        SEND_VAL                                                     'UTF-8'
         48        SEND_VAL                                                     'SJIS-win'
         49        DO_ICALL                                             $10     
         50        SEND_VAR                                                     $10
         51        DO_ICALL                                                     
         52      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.34 ms | 3378 KiB | 15 Q