3v4l.org

run code in 300+ PHP versions simultaneously
<?php $raw = "\xc3\x28"; ini_set('mbstring.substitute_character', "none"); $fixed = mb_convert_encoding($raw, 'UTF-8', 'UTF-8'); var_dump(json_encode($raw)); var_dump(json_encode($fixed));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D1bpL
function name:  (null)
number of ops:  24
compiled vars:  !0 = $raw, !1 = $fixed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%C3%28'
    3     1        INIT_FCALL                                               'ini_set'
          2        SEND_VAL                                                 'mbstring.substitute_character'
          3        SEND_VAL                                                 'none'
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'mb_convert_encoding'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'UTF-8'
          8        SEND_VAL                                                 'UTF-8'
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !1, $4
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
    7    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'json_encode'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.71 ms | 1399 KiB | 21 Q