3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<HERE <!DOCTYPE dtd [ <!ENTITY ref "ent"> ]> <elt att="&ref;">a&ref;</elt> HERE; $parser = xml_parser_create(); xml_set_character_data_handler($parser, function ($parser, $data) { var_dump($data); }); xml_set_default_handler($parser, function () {}); xml_parse($parser, $xml, true); xml_parser_free($parser);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PUrG6
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xml, !1 = $parser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%21DOCTYPE+dtd+%5B%0A++++%3C%21ENTITY+ref+%22ent%22%3E%0A%5D%3E%0A%3Celt+att%3D%22%26ref%3B%22%3Ea%26ref%3B%3C%2Felt%3E'
   10     1        INIT_FCALL                                               'xml_parser_create'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
   11     4        INIT_FCALL                                               'xml_set_character_data_handler'
          5        SEND_VAR                                                 !1
          6        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FPUrG6%3A11%240'
   13     7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
   14     9        INIT_FCALL                                               'xml_set_default_handler'
         10        SEND_VAR                                                 !1
         11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FPUrG6%3A14%241'
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
   15    14        INIT_FCALL                                               'xml_parse'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                                 
   16    19        INIT_FCALL                                               'xml_parser_free'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FPUrG6%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PUrG6
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $parser, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
   13     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FPUrG6%3A11%240

Function %00%7Bclosure%7D%2Fin%2FPUrG6%3A14%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PUrG6
function name:  {closure}
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FPUrG6%3A14%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.3 ms | 1396 KiB | 25 Q