3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = chr(239).chr(187).chr(191) //BOM UTF8 .chr(195).chr(180) ; //ô var_dump( mb_detect_encoding( chr(239).chr(187).chr(191) //BOM UTF8 .chr(195).chr(180) //ô , [ 'UTF-8', 'ISO-8859-1', ] , true ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/83vWZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%EF%BB%BF%C3%B4'
    4     1        INIT_FCALL                                               'var_dump'
    5     2        INIT_FCALL                                               'mb_detect_encoding'
    7     3        SEND_VAL                                                 '%EF%BB%BF%C3%B4'
    9     4        SEND_VAL                                                 <array>
   12     5        SEND_VAL                                                 <true>
    5     6        DO_ICALL                                         $2      
   12     7        SEND_VAR                                                 $2
    4     8        DO_ICALL                                                 
   14     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.4 ms | 1009 KiB | 15 Q