3v4l.org

run code in 300+ PHP versions simultaneously
<?php function win2ascii($str) { $str = StrTr($str, "\xE1\xE8\xEF\xEC\xE9\xED\xF2", "\x61\x63\x64\x65\x65\x69\x6E"); $str = StrTr($str, "\xF3\xF8\x9A\x9D\xF9\xFA\xFD\x9E\xF4\xBC\xBE", "\x6F\x72\x73\x74\x75\x75\x79\x7A\x6F\x4C\x6C"); $str = StrTr($str, "\xC1\xC8\xCF\xCC\xC9\xCD\xC2\xD3\xD8", "\x41\x43\x44\x45\x45\x49\x4E\x4F\x52"); $str = StrTr($str, "\x8A\x8D\xDA\xDD\x8E\xD2\xD9\xEF\xCF", "\x53\x54\x55\x59\x5A\x4E\x55\x64\x44"); return $str; } echo win2ascii('ółśćńżźęą');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vW9hM
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'win2ascii'
          1        SEND_VAL                                                 '%C3%B3%C5%82%C5%9B%C4%87%C5%84%C5%BC%C5%BA%C4%99%C4%85'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function win2ascii:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vW9hM
function name:  win2ascii
number of ops:  27
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'strtr'
          2        SEND_VAR                                                 !0
    6     3        SEND_VAL                                                 '%E1%E8%EF%EC%E9%ED%F2'
    7     4        SEND_VAL                                                 'acdeein'
          5        DO_ICALL                                         $1      
    5     6        ASSIGN                                                   !0, $1
    9     7        INIT_FCALL                                               'strtr'
          8        SEND_VAR                                                 !0
   10     9        SEND_VAL                                                 '%F3%F8%9A%9D%F9%FA%FD%9E%F4%BC%BE'
   11    10        SEND_VAL                                                 'orstuuyzoLl'
         11        DO_ICALL                                         $3      
    9    12        ASSIGN                                                   !0, $3
   13    13        INIT_FCALL                                               'strtr'
         14        SEND_VAR                                                 !0
   14    15        SEND_VAL                                                 '%C1%C8%CF%CC%C9%CD%C2%D3%D8'
   15    16        SEND_VAL                                                 'ACDEEINOR'
         17        DO_ICALL                                         $5      
   13    18        ASSIGN                                                   !0, $5
   17    19        INIT_FCALL                                               'strtr'
         20        SEND_VAR                                                 !0
   18    21        SEND_VAL                                                 '%8A%8D%DA%DD%8E%D2%D9%EF%CF'
   19    22        SEND_VAL                                                 'STUYZNUdD'
         23        DO_ICALL                                         $7      
   17    24        ASSIGN                                                   !0, $7
   21    25      > RETURN                                                   !0
   22    26*     > RETURN                                                   null

End of function win2ascii

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.52 ms | 1403 KiB | 16 Q