<?php
$test = 'test:test';
$encodings = ['UTF-8', 'SJIS', 'GB2312',
'ISO-8859-1', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4',
'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9',
'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'ISO-8859-16',
'WINDOWS-1252', 'WINDOWS-1251', 'EUC-JP', 'EUC-TW', 'KOI8-R', 'BIG-5',
'ISO-2022-KR', 'ISO-2022-JP', 'UTF-16'
];
echo mb_detect_encoding($test, $encodings);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/UXtBd
function name: (null)
number of ops: 8
compiled vars: !0 = $test, !1 = $encodings
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, 'test%3Atest'
4 1 ASSIGN !1, <array>
11 2 INIT_FCALL 'mb_detect_encoding'
3 SEND_VAR !0
4 SEND_VAR !1
5 DO_ICALL $4
6 ECHO $4
7 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
143.28 ms | 1393 KiB | 15 Q