3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'abcde æøå æøå ð Ð ≗ 䎇 顃 ‰'; echo mb_detect_encoding($text, ['UTF-8', 'CP1252', 'ISO-8859-1'], true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/96Wl1
function name:  (null)
number of ops:  8
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'abcde+%C3%A6%C3%B8%C3%A5+%C3%A6%C3%B8%C3%A5+%C3%B0+%C3%90+%E2%89%97+%E4%8E%87+%E9%A1%83+%E2%80%B0'
    5     1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <array>
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
218.71 ms | 1008 KiB | 14 Q