3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( bin2hex(mb_convert_encoding( "test ääöö", "ISO-8859-15", "UTF-8" )), mb_convert_encoding( mb_substr( mb_convert_encoding( "test ääöö", "ISO-8859-15", "UTF-8" ), 0, null, "UTF-8" ), "UTF-8", "ISO-8859-15" ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9U5tW
function name:  (null)
number of ops:  29
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
    3     1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL                                               'mb_convert_encoding'
    4     3        SEND_VAL                                                 'test+%C3%A4%C3%A4%C3%B6%C3%B6'
    5     4        SEND_VAL                                                 'ISO-8859-15'
    6     5        SEND_VAL                                                 'UTF-8'
    3     6        DO_ICALL                                         $0      
    6     7        SEND_VAR                                                 $0
    3     8        DO_ICALL                                         $1      
    6     9        SEND_VAR                                                 $1
    8    10        INIT_FCALL                                               'mb_convert_encoding'
    9    11        INIT_FCALL                                               'mb_substr'
   10    12        INIT_FCALL                                               'mb_convert_encoding'
   11    13        SEND_VAL                                                 'test+%C3%A4%C3%A4%C3%B6%C3%B6'
   12    14        SEND_VAL                                                 'ISO-8859-15'
   13    15        SEND_VAL                                                 'UTF-8'
   10    16        DO_ICALL                                         $2      
   13    17        SEND_VAR                                                 $2
   15    18        SEND_VAL                                                 0
   16    19        SEND_VAL                                                 null
   17    20        SEND_VAL                                                 'UTF-8'
    9    21        DO_ICALL                                         $3      
   17    22        SEND_VAR                                                 $3
   19    23        SEND_VAL                                                 'UTF-8'
   20    24        SEND_VAL                                                 'ISO-8859-15'
    8    25        DO_ICALL                                         $4      
   20    26        SEND_VAR                                                 $4
    2    27        DO_ICALL                                                 
   22    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.31 ms | 1013 KiB | 17 Q