3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myxml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?><root>invalid \xe4</root>"; $p = xml_parser_create('ISO-8859-1'); xml_parse_into_struct($p, $myxml, $vals, $index); var_dump(xml_error_string(xml_get_error_code($p))); xml_parser_free($p); print_r($vals); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tUDnV
function name:  (null)
number of ops:  27
compiled vars:  !0 = $myxml, !1 = $p, !2 = $vals, !3 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-1%22%3F%3E%3Croot%3Einvalid+%E4%3C%2Froot%3E'
    4     1        INIT_FCALL                                               'xml_parser_create'
          2        SEND_VAL                                                 'ISO-8859-1'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    5     5        INIT_FCALL                                               'xml_parse_into_struct'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        SEND_REF                                                 !2
          9        SEND_REF                                                 !3
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'xml_error_string'
         13        INIT_FCALL                                               'xml_get_error_code'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $8      
         16        SEND_VAR                                                 $8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                                 
    7    20        INIT_FCALL                                               'xml_parser_free'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'print_r'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                                 
    9    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.02 ms | 1387 KiB | 27 Q