3v4l.org

run code in 300+ PHP versions simultaneously
<?php $writer = new XMLWriter; $writer->openURI('php://output'); $writer->startDocument('1.0', 'UTF-8'); $writer->startElement('response'); $writer->startElement('status'); $writer->startAttribute('code'); $writer->text(htmlspecialchars("<>\u{b}", ENT_NOQUOTES | ENT_XML1 | ENT_DISALLOWED, true)); $writer->endAttribute(); $writer->endElement(); $writer->endElement(); $writer->endDocument(); var_dump(bin2hex (" " . "\u{b}"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BLiEC
function name:  (null)
number of ops:  42
compiled vars:  !0 = $writer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'XMLWriter'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        INIT_METHOD_CALL                                         !0, 'openURI'
          4        SEND_VAL_EX                                              'php%3A%2F%2Foutput'
          5        DO_FCALL                                      0          
    4     6        INIT_METHOD_CALL                                         !0, 'startDocument'
          7        SEND_VAL_EX                                              '1.0'
          8        SEND_VAL_EX                                              'UTF-8'
          9        DO_FCALL                                      0          
    6    10        INIT_METHOD_CALL                                         !0, 'startElement'
         11        SEND_VAL_EX                                              'response'
         12        DO_FCALL                                      0          
    7    13        INIT_METHOD_CALL                                         !0, 'startElement'
         14        SEND_VAL_EX                                              'status'
         15        DO_FCALL                                      0          
    8    16        INIT_METHOD_CALL                                         !0, 'startAttribute'
         17        SEND_VAL_EX                                              'code'
         18        DO_FCALL                                      0          
    9    19        INIT_METHOD_CALL                                         !0, 'text'
         20        INIT_FCALL                                               'htmlspecialchars'
         21        SEND_VAL                                                 '%3C%3E%0B'
         22        SEND_VAL                                                 144
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $9      
         25        SEND_VAR_NO_REF_EX                                       $9
         26        DO_FCALL                                      0          
   10    27        INIT_METHOD_CALL                                         !0, 'endAttribute'
         28        DO_FCALL                                      0          
   11    29        INIT_METHOD_CALL                                         !0, 'endElement'
         30        DO_FCALL                                      0          
   12    31        INIT_METHOD_CALL                                         !0, 'endElement'
         32        DO_FCALL                                      0          
   14    33        INIT_METHOD_CALL                                         !0, 'endDocument'
         34        DO_FCALL                                      0          
   16    35        INIT_FCALL                                               'var_dump'
         36        INIT_FCALL                                               'bin2hex'
         37        SEND_VAL                                                 '%0B%0B'
         38        DO_ICALL                                         $15     
         39        SEND_VAR                                                 $15
         40        DO_ICALL                                                 
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.93 ms | 1388 KiB | 19 Q