3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myxml="<XML><FELD1>blubb</FELD1><FELD2>dies hier sonderzeichen \xe4</FELD2><FELD3>feld3</FELD3></XML>"; $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/eb2k1
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, '%3CXML%3E%3CFELD1%3Eblubb%3C%2FFELD1%3E%3CFELD2%3Edies+hier+sonderzeichen+%E4%3C%2FFELD2%3E%3CFELD3%3Efeld3%3C%2FFELD3%3E%3C%2FXML%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                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.7 ms | 1395 KiB | 27 Q