3v4l.org

run code in 500+ PHP versions simultaneously
<?php error_reporting(PHP_INT_MAX); ini_set("mbstring.substitute_character", (string) ord("X")); ini_set("mbstring.strict_detection", "1"); // no effect // bytes 0x80-0xff are not valid ASCII: echo 1, rawurlencode(mb_convert_encoding("\x80", "UTF-8", "ASCII")) . "\n"; // bytes 0x80-0x9f are not valid ISO-8859-1: echo 2, rawurlencode(mb_convert_encoding("\x80", "UTF-8", "ISO-8859-1")) . "\n"; echo 3, rawurlencode(mb_convert_encoding("\x80", "UTF-8", "UTF-8")) . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nCgbh
function name:  (null)
number of ops:  46
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'error_reporting'
          1        SEND_VAL                                                     9223372036854775807
          2        DO_ICALL                                                     
    4     3        INIT_FCALL                                                   'ini_set'
          4        SEND_VAL                                                     'mbstring.substitute_character'
          5        CAST                                              6  ~1      88
          6        SEND_VAL                                                     ~1
          7        DO_ICALL                                                     
    5     8        INIT_FCALL                                                   'ini_set'
          9        SEND_VAL                                                     'mbstring.strict_detection'
         10        SEND_VAL                                                     '1'
         11        DO_ICALL                                                     
    7    12        ECHO                                                         1
         13        INIT_FCALL                                                   'rawurlencode'
         14        INIT_FCALL                                                   'mb_convert_encoding'
         15        SEND_VAL                                                     '%80'
         16        SEND_VAL                                                     'UTF-8'
         17        SEND_VAL                                                     'ASCII'
         18        DO_ICALL                                             $4      
         19        SEND_VAR                                                     $4
         20        DO_ICALL                                             $5      
         21        CONCAT                                               ~6      $5, '%0A'
         22        ECHO                                                         ~6
    9    23        ECHO                                                         2
         24        INIT_FCALL                                                   'rawurlencode'
         25        INIT_FCALL                                                   'mb_convert_encoding'
         26        SEND_VAL                                                     '%80'
         27        SEND_VAL                                                     'UTF-8'
         28        SEND_VAL                                                     'ISO-8859-1'
         29        DO_ICALL                                             $7      
         30        SEND_VAR                                                     $7
         31        DO_ICALL                                             $8      
         32        CONCAT                                               ~9      $8, '%0A'
         33        ECHO                                                         ~9
   10    34        ECHO                                                         3
         35        INIT_FCALL                                                   'rawurlencode'
         36        INIT_FCALL                                                   'mb_convert_encoding'
         37        SEND_VAL                                                     '%80'
         38        SEND_VAL                                                     'UTF-8'
         39        SEND_VAL                                                     'UTF-8'
         40        DO_ICALL                                             $10     
         41        SEND_VAR                                                     $10
         42        DO_ICALL                                             $11     
         43        CONCAT                                               ~12     $11, '%0A'
         44        ECHO                                                         ~12
         45      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.68 ms | 2001 KiB | 17 Q