3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ''; var_dump(bin2hex($string)); var_dump( $input ); var_dump( iconv(mb_detect_encoding($input, mb_detect_order(), true), "UTF-8", $input) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cuqp7
function name:  (null)
number of ops:  26
compiled vars:  !0 = $input, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%01%03%03%04'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'bin2hex'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL_BY_NAME                                       'iconv'
         12        INIT_FCALL                                               'mb_detect_encoding'
         13        SEND_VAR                                                 !0
         14        INIT_FCALL                                               'mb_detect_order'
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $7      
         19        SEND_VAR_NO_REF_EX                                       $7
         20        SEND_VAL_EX                                              'UTF-8'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0  $8      
         23        SEND_VAR                                                 $8
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.46 ms | 1395 KiB | 21 Q