3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = explode(", ", "'¦, ¨, ´, ¸, À, Á, Â Ã, Ä, Ã…"); foreach ($chars as $char) { $x = mb_convert_encoding($char, 'Windows-1252', 'UTF-8'); var_dump($x); var_dump(utf8_encode($x)); } var_dump(utf8_decode('ß'));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 23
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/fcMsI
function name:  (null)
number of ops:  31
compiled vars:  !0 = $chars, !1 = $char, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2C+'
          2        SEND_VAL                                                 '%27%C3%82%C2%A6%2C+%C3%82%C2%A8%2C+%C3%82%C2%B4%2C+%C3%82%C2%B8%2C+%C3%83%E2%82%AC%2C+%C3%83%C2%81%2C+%C3%83%E2%80%9A+%C3%83%C6%92%2C+%C3%83%E2%80%9E%2C+%C3%83%E2%80%A6'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5      > FE_RESET_R                                       $5      !0, ->23
          6    > > FE_FETCH_R                                               $5, !1, ->23
    4     7    >   INIT_FCALL                                               'mb_convert_encoding'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 'Windows-1252'
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !2, $6
    5    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'utf8_encode'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                                 
    3    22      > JMP                                                      ->6
         23    >   FE_FREE                                                  $5
    8    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'utf8_decode'
         26        SEND_VAL                                                 '%C3%9F'
         27        DO_ICALL                                         $11     
         28        SEND_VAR                                                 $11
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.41 ms | 1396 KiB | 23 Q