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/L80fk
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/L80fk
function name:  parseAndOutput
number of ops:  14
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
    9     4        INIT_FCALL                                               'xml_parse_into_struct'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !2
          8        SEND_REF                                                 !3
          9        DO_ICALL                                                 
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   12    13      > RETURN                                                   null

End of function parseandoutput

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.39 ms | 1014 KiB | 17 Q