3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "\u00c5\u00a0koda"; $str = mb_convert_encoding($str, "iso-8859-1"); echo $str; $str = mb_convert_encoding($str, "utf-8"); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i6Q6v
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5Cu00c5%5Cu00a0koda'
    4     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'iso-8859-1'
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    6     6        ECHO                                                     !0
    9     7        INIT_FCALL                                               'mb_convert_encoding'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'utf-8'
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
   12    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.59 ms | 1398 KiB | 15 Q