3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); $string = 'test'; var_dump(\mb_detect_encoding($string, \mb_list_encodings()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K2qsM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, 'test'
    5     1        INIT_FCALL                                                   'var_dump'
          2        INIT_FCALL                                                   'mb_detect_encoding'
          3        SEND_VAR                                                     !0
          4        INIT_FCALL                                                   'mb_list_encodings'
          5        DO_ICALL                                             $2      
          6        SEND_VAR                                                     $2
          7        DO_ICALL                                             $3      
          8        SEND_VAR                                                     $3
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
176.31 ms | 1991 KiB | 16 Q