3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Weiß, Goldmann, Göbel, Weiss, Göthe, Goethe und Götz"; foreach(mb_list_encodings() as $chr){ echo mb_convert_encoding($str, 'UTF-8', $chr)." : ".$chr."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/JfYX4
function name:  (null)
number of ops:  17
compiled vars:  !0 = $str, !1 = $chr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Wei%C3%9F%2C+Goldmann%2C+G%C3%B6bel%2C+Weiss%2C+G%C3%B6the%2C+Goethe+und+G%C3%B6tz'
    5     1        INIT_FCALL                                               'mb_list_encodings'
          2        DO_ICALL                                         $3      
          3      > FE_RESET_R                                       $4      $3, ->15
          4    > > FE_FETCH_R                                               $4, !1, ->15
    6     5    >   INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'UTF-8'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10        CONCAT                                           ~6      $5, '+%3A+'
         11        CONCAT                                           ~7      ~6, !1
         12        CONCAT                                           ~8      ~7, '%0A'
         13        ECHO                                                     ~8
    5    14      > JMP                                                      ->4
         15    >   FE_FREE                                                  $4
    7    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.62 ms | 1395 KiB | 17 Q