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"; echo iconv("GBK", "UTF-8", urldecode($param)); 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/UFvhV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $param
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_BY_NAME                                       'iconv'
          2        SEND_VAL_EX                                              'GBK'
          3        SEND_VAL_EX                                              'UTF-8'
          4        INIT_FCALL                                               'urldecode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR_NO_REF_EX                                       $2
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
    4    10        INIT_FCALL                                               'mb_convert_encoding'
         11        INIT_FCALL                                               'urldecode'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        SEND_VAL                                                 'utf-8'
         16        SEND_VAL                                                 'gb2312'
         17        DO_ICALL                                         $5      
         18        ECHO                                                     $5
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.11 ms | 1395 KiB | 17 Q