3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'ııİöÖğĞçÇşŞ'; $t = mb_detect_encoding($s, ['ASCII', 'UTF-8', 'ISO-8859-1', 'ISO-8859-15']); echo $t."\n"; $e = mb_convert_encoding($s, $t, 'UTF-8'); echo $e."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C2rkJ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $s, !1 = $t, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C4%B1%C4%B1%C4%B0%C3%B6%C3%96%C4%9F%C4%9E%C3%A7%C3%87%C5%9F%C5%9E'
    5     1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        CONCAT                                           ~6      !1, '%0A'
          7        ECHO                                                     ~6
    8     8        INIT_FCALL                                               'mb_convert_encoding'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 'UTF-8'
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    9    14        CONCAT                                           ~9      !2, '%0A'
         15        ECHO                                                     ~9
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.32 ms | 1010 KiB | 15 Q