3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello'; var_dump(mb_detect_encoding($string)); mb_detect_order('UTF-8'); var_dump(['order' => mb_detect_order(), 'detected' => mb_detect_encoding($string)]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sDCdP
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, 'Hello'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'mb_detect_encoding'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'mb_detect_order'
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'mb_detect_order'
         12        DO_ICALL                                         $5      
         13        INIT_ARRAY                                       ~6      $5, 'order'
         14        INIT_FCALL                                               'mb_detect_encoding'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $7      
         17        ADD_ARRAY_ELEMENT                                ~6      $7, 'detected'
         18        SEND_VAL                                                 ~6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.42 ms | 1395 KiB | 19 Q