3v4l.org

run code in 500+ PHP versions simultaneously
<?php $test = 'test:test'; $encodings = array_diff(mb_list_encodings(), ['UUENCODE', 'wchar']); echo mb_detect_encoding($test, $encodings, true);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lfM8J
function name:  (null)
number of ops:  15
compiled vars:  !0 = $test, !1 = $encodings
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'test%3Atest'
    5     1        INIT_FCALL                                                   'array_diff'
          2        INIT_FCALL                                                   'mb_list_encodings'
          3        DO_ICALL                                             $3      
          4        SEND_VAR                                                     $3
          5        SEND_VAL                                                     <array>
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
    6     8        INIT_FCALL                                                   'mb_detect_encoding'
          9        SEND_VAR                                                     !0
         10        SEND_VAR                                                     !1
         11        SEND_VAL                                                     <true>
         12        DO_ICALL                                             $6      
         13        ECHO                                                         $6
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.92 ms | 1988 KiB | 16 Q