3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.38 ms | 1012 KiB | 16 Q