3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '你好'; $input_encoding = 'GBK'; $str_gb = iconv($input_encoding, 'GBK', true); echo sprintf('input encoding:%s', $input_encoding);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qbUTD
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $input_encoding, !2 = $str_gb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E4%BD%A0%E5%A5%BD'
    3     1        ASSIGN                                                   !1, 'GBK'
    4     2        INIT_FCALL_BY_NAME                                       'iconv'
          3        SEND_VAR_EX                                              !1
          4        SEND_VAL_EX                                              'GBK'
          5        SEND_VAL_EX                                              <true>
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !2, $5
    5     8        INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 'input+encoding%3A%25s'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ECHO                                                     $7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.9 ms | 1394 KiB | 18 Q