3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "<?php function test() { } "; mb_detect_order(["ASCII", "UUENCODE"]); var_dump( mb_detect_encoding($string, null, true), mb_detect_encoding($string, mb_detect_order(), true), );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/arIJ5
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fphp%0A%0Afunction+test%28%29%0A%7B%0A%0A%7D%0A'
   11     1        INIT_FCALL                                               'mb_detect_order'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                                 
   13     4        INIT_FCALL                                               'var_dump'
   14     5        INIT_FCALL                                               'mb_detect_encoding'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 null
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
   15    11        INIT_FCALL                                               'mb_detect_encoding'
         12        SEND_VAR                                                 !0
         13        INIT_FCALL                                               'mb_detect_order'
         14        DO_ICALL                                         $4      
         15        SEND_VAR                                                 $4
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
   13    19        DO_ICALL                                                 
   16    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
248.63 ms | 1012 KiB | 16 Q