3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.06 ms | 1394 KiB | 17 Q