3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding('UTF-8'); $value = 'g' . chr(0xa4) .'eld'; mb_substitute_character('entity'); var_dump(mb_detect_encoding($value, mb_detect_order())); $value = mb_convert_encoding($value, 'UTF-8'); var_dump($value, mb_strlen($value));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GIKFk
function name:  (null)
number of ops:  29
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 'g%A4eld'
    6     4        INIT_FCALL                                               'mb_substitute_character'
          5        SEND_VAL                                                 'entity'
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'mb_detect_encoding'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'mb_detect_order'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
         14        SEND_VAR                                                 $5
         15        DO_ICALL                                                 
    9    16        INIT_FCALL                                               'mb_convert_encoding'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 'UTF-8'
         19        DO_ICALL                                         $7      
         20        ASSIGN                                                   !0, $7
   10    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        INIT_FCALL                                               'mb_strlen'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $9      
         26        SEND_VAR                                                 $9
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.85 ms | 1395 KiB | 27 Q