3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '<?xml version="1.0" ?> <data> <action>insert_message</action> <reactid>00000000000000000000000000000000</reactid> <topicid>126628</topicid> <content> [quote][b][message=10028109,noline]aintnosweet schreef op dinsdag 20 september 2011 14:23[/message][/b] .<b>Meedoen? .Check <a href="http://www.frontrunner.nl/converse" class="link">http://www.frontrunner.nl/converse</a></b> [/quote].test </content> <fields> <mobile>iphone</mobile> </fields> </data>'; $xml_parser = xml_parser_create(''); xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0); xml_parse_into_struct($xml_parser, $input, $vals); $inData = false; foreach($vals as $element) { if(strtolower($element['tag']) == 'data') { $inData = !$inData; } elseif($inData) { // if(isset($element['value'])) $data[ $element['tag'] ] = $element['value']; } } var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "value" in /in/tf9E9 on line 31 array(4) { ["action"]=> string(14) "insert_message" ["topicid"]=> string(6) "126628" ["fields"]=> NULL ["mobile"]=> string(6) "iphone" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.68 ms | 402 KiB | 8 Q