3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> <?php $xml=simplexml_load_file("note.xml"); print_r($xml); ?>
Output for 5.1.0 - 5.4.32
<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Warning: simplexml_load_file(): I/O warning : failed to load external entity "note.xml" in /in/7l2Rh on line 9
Output for 5.0.0 - 5.0.5
<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Warning: I/O warning : failed to load external entity "note.xml" in /in/7l2Rh on line 9
Output for 4.4.5 - 4.4.9
<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Fatal error: Call to undefined function: simplexml_load_file() in /in/7l2Rh on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Fatal error: Call to undefined function: simplexml_load_file() in /in/7l2Rh on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<?xml version="1.0" encoding="UTF-8"?> <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> Fatal error: Call to undefined function: simplexml_load_file() in /in/7l2Rh on line 9