3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version='1.0'?> <document> <title>Zweiundvierz...?</title> <from>Joe</from> <to>Jane</to> <body> Ich kenne die Antwort -- aber was ist die Frage? </body> </document> XML; $xml = simplexml_load_string($string); print_r($xml[title]); ?>

preferences:
38.95 ms | 402 KiB | 5 Q