3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.66 ms | 1394 KiB | 17 Q