3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parseAndOutput($s) { $p = xml_parser_create(); xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1); xml_parse_into_struct($p, $s, $values, $index); var_dump($values); // echo $values[0]['value'] . "\n\n"; } // $s = "<a>b\nc</a>"; // parseAndOutput($s); $s = "<a><b>&lt;d&gt;\n &lt;e&gt;</b><![CDATA[ ]]><c>\n \t</c></a>"; parseAndOutput($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ue9dU
function name:  (null)
number of ops:  5
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, '%3Ca%3E%3Cb%3E%26lt%3Bd%26gt%3B%0A+%26lt%3Be%26gt%3B%3C%2Fb%3E%3C%21%5BCDATA%5B++%5D%5D%3E%3Cc%3E%0A+%09%3C%2Fc%3E%3C%2Fa%3E'
   18     1        INIT_FCALL                                               'parseandoutput'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function parseandoutput:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ue9dU
function name:  parseAndOutput
number of ops:  19
compiled vars:  !0 = $s, !1 = $p, !2 = $values, !3 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'xml_parser_create'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
    7     4        INIT_FCALL                                               'xml_parser_set_option'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 4
          7        SEND_VAL                                                 1
          8        DO_ICALL                                                 
    9     9        INIT_FCALL                                               'xml_parse_into_struct'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !0
         12        SEND_REF                                                 !2
         13        SEND_REF                                                 !3
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
   12    18      > RETURN                                                   null

End of function parseandoutput

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.88 ms | 1016 KiB | 18 Q