3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '<?xml version="1.0" encoding="UTF-8"?> <root a="b"> <row b="y"> <item s="t" /> </row> <row p="c"> <item y="n" /> </row> </root>'; $b = str_replace( array("\n", "\r", "\t"), "", $a ); $simple_xml = simplexml_load_string($b); print_r($simple_xml->row[0]->item);

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
105.25 ms | 2500 KiB | 4 Q