3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting_result = mb_substitute_character('long'); $decodedText = 'a'.chr(0x81).'b'; print(mb_convert_encoding($decodedText, 'UTF-8', 'ASCII'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pKmNt
function name:  (null)
number of ops:  12
compiled vars:  !0 = $setting_result, !1 = $decodedText
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mb_substitute_character'
          1        SEND_VAL                                                 'long'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 'a%81b'
    5     5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 'UTF-8'
          8        SEND_VAL                                                 'ASCII'
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.33 ms | 999 KiB | 15 Q