3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <global> <entity_id><![CDATA[82]]></entity_id> <attribute_set_id><![CDATA[9]]></attribute_set_id> <sku><![CDATA[ana_8]]></sku> <erp> <barcode></barcode> </erp> </global> XML; print_r(json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)));
Output for 7.0.0
Parse error: syntax error, unexpected ';', expecting ',' or ')' in /in/4HA38 on line 14
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected ';' in /in/4HA38 on line 14
Process exited with code 255.

preferences:
174.33 ms | 1395 KiB | 24 Q