3v4l.org

run code in 300+ PHP versions simultaneously
<?php $param = "%E7%91%9E%E6%80%9D%E5%AD%A6%E7%A7%91%E8%8B%B1%E8%AF%AD"; $decodeParam = urldecode($param); echo iconv("GBK", "UTF-8", $decodeParam); echo mb_convert_encoding(urldecode($param), "utf-8", "gb2312");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/remej
function name:  (null)
number of ops:  21
compiled vars:  !0 = $param, !1 = $decodeParam
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%25E7%2591%259E%25E6%2580%259D%25E5%25AD%25A6%25E7%25A7%2591%25E8%258B%25B1%25E8%25AF%25AD'
    3     1        INIT_FCALL                                               'urldecode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL_BY_NAME                                       'iconv'
          6        SEND_VAL_EX                                              'GBK'
          7        SEND_VAL_EX                                              'UTF-8'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $5      
         10        ECHO                                                     $5
    5    11        INIT_FCALL                                               'mb_convert_encoding'
         12        INIT_FCALL                                               'urldecode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        SEND_VAL                                                 'utf-8'
         17        SEND_VAL                                                 'gb2312'
         18        DO_ICALL                                         $7      
         19        ECHO                                                     $7
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.25 ms | 1395 KiB | 17 Q