<?php
/*
$xml_string = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<methodResponse><params><param><value><struct><member><name>Result</name><value><array><data><value><array><data><value><string>29</string></value></data></array></value></data></array></value></member></struct></value></param></params></methodResponse>";
$parser = xml_parser_create();
xml_parse_into_struct($parser , $xml_string, $array_result, $index);
ob_start();
var_dump($array_result);
$result = ob_get_clean();
echo $array_result[14]["value"];
*/
$simple = "<root><returnCode>0000</returnCode><description></description></root>";
$p = xml_parser_create();
xml_parse_into_struct($p, $simple, $vals, $index);
xml_parser_free($p);
print_r($vals);
echo $vals[1]["value"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/h6Jht
function name: (null)
number of ops: 20
compiled vars: !0 = $simple, !1 = $p, !2 = $vals, !3 = $index
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
17 0 E > ASSIGN !0, '%3Croot%3E%3CreturnCode%3E0000%3C%2FreturnCode%3E%3Cdescription%3E%3C%2Fdescription%3E%3C%2Froot%3E'
18 1 INIT_FCALL 'xml_parser_create'
2 DO_ICALL $5
3 ASSIGN !1, $5
19 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
20 10 INIT_FCALL 'xml_parser_free'
11 SEND_VAR !1
12 DO_ICALL
21 13 INIT_FCALL 'print_r'
14 SEND_VAR !2
15 DO_ICALL
23 16 FETCH_DIM_R ~10 !2, 1
17 FETCH_DIM_R ~11 ~10, 'value'
18 ECHO ~11
19 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
167.13 ms | 1386 KiB | 21 Q