3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '你好'; $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/MqsvZ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $str, !1 = $str_gb, !2 = $input_encoding
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%E4%BD%A0%E5%A5%BD'
    3     1        INIT_FCALL_BY_NAME                                       'iconv'
          2        SEND_VAR_EX                                              !2
          3        SEND_VAL_EX                                              'GBK'
          4        SEND_VAL_EX                                              <true>
          5        DO_FCALL                                      0  $4      
          6        ASSIGN                                                   !1, $4
    4     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 'input+encoding%3A%25s'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $6      
         11        ECHO                                                     $6
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.18 ms | 1394 KiB | 15 Q