3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "TM: \x99"; $result = iconv('Windows-1252', 'UTF-8', $str); var_dump( mb_convert_encoding($str, 'UTF-8', 'Windows-1252'), iconv('Windows-1252', 'UTF-8', $str) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MEM97
function name:  (null)
number of ops:  22
compiled vars:  !0 = $str, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'TM%3A+%99'
    3     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'Windows-1252'
          3        SEND_VAL_EX                                              'UTF-8'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $3      
          6        ASSIGN                                                   !1, $3
    5     7        INIT_FCALL                                               'var_dump'
    6     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'UTF-8'
         11        SEND_VAL                                                 'Windows-1252'
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
    7    14        INIT_FCALL_BY_NAME                                       'iconv'
         15        SEND_VAL_EX                                              'Windows-1252'
         16        SEND_VAL_EX                                              'UTF-8'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
    8    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.06 ms | 1395 KiB | 20 Q