3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '₩'; $fromEncoding = 'UTF-8'; $toEncoding = 'EUC-KR'; echo iconv($toEncoding, $fromEncoding, iconv($fromEncoding, $toEncoding, $text)); echo "\n"; echo mb_convert_encoding(mb_convert_encoding($text, $toEncoding, $fromEncoding), $fromEncoding, $toEncoding); echo "\n"; echo $text; echo "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QnFXa
function name:  (null)
number of ops:  30
compiled vars:  !0 = $text, !1 = $fromEncoding, !2 = $toEncoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E2%82%A9'
    4     1        ASSIGN                                                   !1, 'UTF-8'
    5     2        ASSIGN                                                   !2, 'EUC-KR'
    7     3        INIT_FCALL_BY_NAME                                       'iconv'
          4        SEND_VAR_EX                                              !2
          5        SEND_VAR_EX                                              !1
          6        INIT_FCALL_BY_NAME                                       'iconv'
          7        SEND_VAR_EX                                              !1
          8        SEND_VAR_EX                                              !2
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR_NO_REF_EX                                       $6
         12        DO_FCALL                                      0  $7      
         13        ECHO                                                     $7
    8    14        ECHO                                                     '%0A'
    9    15        INIT_FCALL                                               'mb_convert_encoding'
         16        INIT_FCALL                                               'mb_convert_encoding'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !2
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        SEND_VAR                                                 !1
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $9      
         25        ECHO                                                     $9
   10    26        ECHO                                                     '%0A'
   11    27        ECHO                                                     !0
   12    28        ECHO                                                     '%0A'
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.05 ms | 1387 KiB | 18 Q