3v4l.org

run code in 300+ PHP versions simultaneously
<?php function conv($str): string { $res = ''; $res .= 'SJIS-win: ' . mb_convert_encoding($str, 'SJIS-win') . "\n"; return $res; } $res = ''; $res = conv('あ'); $res .= conv('~'); $res .= conv('\\'); $res .= conv('¥'); $res .= conv('‾'); echo $res;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AaUu7
function name:  (null)
number of ops:  23
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN                                                   !0, ''
   11     1        INIT_FCALL                                               'conv'
          2        SEND_VAL                                                 '%E3%81%82'
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
   12     5        INIT_FCALL                                               'conv'
          6        SEND_VAL                                                 '%7E'
          7        DO_FCALL                                      0  $4      
          8        ASSIGN_OP                                     8          !0, $4
   13     9        INIT_FCALL                                               'conv'
         10        SEND_VAL                                                 '%5C'
         11        DO_FCALL                                      0  $6      
         12        ASSIGN_OP                                     8          !0, $6
   14    13        INIT_FCALL                                               'conv'
         14        SEND_VAL                                                 '%C2%A5'
         15        DO_FCALL                                      0  $8      
         16        ASSIGN_OP                                     8          !0, $8
   15    17        INIT_FCALL                                               'conv'
         18        SEND_VAL                                                 '%E2%80%BE'
         19        DO_FCALL                                      0  $10     
         20        ASSIGN_OP                                     8          !0, $10
   17    21        ECHO                                                     !0
   18    22      > RETURN                                                   1

Function conv:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AaUu7
function name:  conv
number of ops:  13
compiled vars:  !0 = $str, !1 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, ''
    5     2        INIT_FCALL                                               'mb_convert_encoding'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'SJIS-win'
          5        DO_ICALL                                         $3      
          6        CONCAT                                           ~4      'SJIS-win%3A+', $3
          7        CONCAT                                           ~5      ~4, '%0A'
          8        ASSIGN_OP                                     8          !1, ~5
    7     9        VERIFY_RETURN_TYPE                                       !1
         10      > RETURN                                                   !1
    8    11*       VERIFY_RETURN_TYPE                                       
         12*     > RETURN                                                   null

End of function conv

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
125.1 ms | 1446 KiB | 19 Q