3v4l.org

run code in 300+ PHP versions simultaneously
<?php $backslash_and_tilde = "~\\"; $sjis2004_backslash_and_tilde = mb_convert_encoding($backslash_and_tilde, "SJIS-2004", "UTF-8"); var_dump( bin2hex($sjis2004_backslash_and_tilde), $re_convert = mb_convert_encoding($sjis2004_backslash_and_tilde, "UTF-8", "SJIS-2004"), bin2hex($re_convert) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/42pAL
function name:  (null)
number of ops:  25
compiled vars:  !0 = $backslash_and_tilde, !1 = $sjis2004_backslash_and_tilde, !2 = $re_convert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7E%5C'
    5     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'SJIS-2004'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    6     7        INIT_FCALL                                               'var_dump'
    7     8        INIT_FCALL                                               'bin2hex'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
    8    12        INIT_FCALL                                               'mb_convert_encoding'
         13        SEND_VAR                                                 !1
         14        SEND_VAL                                                 'UTF-8'
         15        SEND_VAL                                                 'SJIS-2004'
         16        DO_ICALL                                         $7      
         17        ASSIGN                                           ~8      !2, $7
         18        SEND_VAL                                                 ~8
    9    19        INIT_FCALL                                               'bin2hex'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
    6    23        DO_ICALL                                                 
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
283.12 ms | 1012 KiB | 16 Q