3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_detect_encoding("\x19", "ASCII", true)); var_dump(mb_detect_encoding("\x20", "ASCII", true)); var_dump(mb_detect_encoding("\x21", "ASCII", true)); var_dump(mb_detect_encoding("\xA1", "ASCII", true)); var_dump(mb_detect_encoding("\x19", "7bit", true)); var_dump(mb_detect_encoding("\x20", "7bit", true)); var_dump(mb_detect_encoding("\x21", "7bit", true)); var_dump(mb_detect_encoding("\xA1", "7bit", true)); var_dump(mb_detect_encoding("\x19", "8bit", true)); var_dump(mb_detect_encoding("\x20", "8bit", true)); var_dump(mb_detect_encoding("\x21", "8bit", true)); var_dump(mb_detect_encoding("\xA1", "8bit", true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6VXK
function name:  (null)
number of ops:  97
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'mb_detect_encoding'
          2        SEND_VAL                                                 '%19'
          3        SEND_VAL                                                 'ASCII'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
    3     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'mb_detect_encoding'
         10        SEND_VAL                                                 '+'
         11        SEND_VAL                                                 'ASCII'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                                 
    4    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'mb_detect_encoding'
         18        SEND_VAL                                                 '%21'
         19        SEND_VAL                                                 'ASCII'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $4      
         22        SEND_VAR                                                 $4
         23        DO_ICALL                                                 
    5    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'mb_detect_encoding'
         26        SEND_VAL                                                 '%A1'
         27        SEND_VAL                                                 'ASCII'
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $6      
         30        SEND_VAR                                                 $6
         31        DO_ICALL                                                 
    7    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'mb_detect_encoding'
         34        SEND_VAL                                                 '%19'
         35        SEND_VAL                                                 '7bit'
         36        SEND_VAL                                                 <true>
         37        DO_ICALL                                         $8      
         38        SEND_VAR                                                 $8
         39        DO_ICALL                                                 
    8    40        INIT_FCALL                                               'var_dump'
         41        INIT_FCALL                                               'mb_detect_encoding'
         42        SEND_VAL                                                 '+'
         43        SEND_VAL                                                 '7bit'
         44        SEND_VAL                                                 <true>
         45        DO_ICALL                                         $10     
         46        SEND_VAR                                                 $10
         47        DO_ICALL                                                 
    9    48        INIT_FCALL                                               'var_dump'
         49        INIT_FCALL                                               'mb_detect_encoding'
         50        SEND_VAL                                                 '%21'
         51        SEND_VAL                                                 '7bit'
         52        SEND_VAL                                                 <true>
         53        DO_ICALL                                         $12     
         54        SEND_VAR                                                 $12
         55        DO_ICALL                                                 
   10    56        INIT_FCALL                                               'var_dump'
         57        INIT_FCALL                                               'mb_detect_encoding'
         58        SEND_VAL                                                 '%A1'
         59        SEND_VAL                                                 '7bit'
         60        SEND_VAL                                                 <true>
         61        DO_ICALL                                         $14     
         62        SEND_VAR                                                 $14
         63        DO_ICALL                                                 
   12    64        INIT_FCALL                                               'var_dump'
         65        INIT_FCALL                                               'mb_detect_encoding'
         66        SEND_VAL                                                 '%19'
         67        SEND_VAL                                                 '8bit'
         68        SEND_VAL                                                 <true>
         69        DO_ICALL                                         $16     
         70        SEND_VAR                                                 $16
         71        DO_ICALL                                                 
   13    72        INIT_FCALL                                               'var_dump'
         73        INIT_FCALL                                               'mb_detect_encoding'
         74        SEND_VAL                                                 '+'
         75        SEND_VAL                                                 '8bit'
         76        SEND_VAL                                                 <true>
         77        DO_ICALL                                         $18     
         78        SEND_VAR                                                 $18
         79        DO_ICALL                                                 
   14    80        INIT_FCALL                                               'var_dump'
         81        INIT_FCALL                                               'mb_detect_encoding'
         82        SEND_VAL                                                 '%21'
         83        SEND_VAL                                                 '8bit'
         84        SEND_VAL                                                 <true>
         85        DO_ICALL                                         $20     
         86        SEND_VAR                                                 $20
         87        DO_ICALL                                                 
   15    88        INIT_FCALL                                               'var_dump'
         89        INIT_FCALL                                               'mb_detect_encoding'
         90        SEND_VAL                                                 '%A1'
         91        SEND_VAL                                                 '8bit'
         92        SEND_VAL                                                 <true>
         93        DO_ICALL                                         $22     
         94        SEND_VAR                                                 $22
         95        DO_ICALL                                                 
         96      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.25 ms | 1404 KiB | 17 Q