3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $topcont = new DOMDocument(); $topcont->load("<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>"); $topcont->topcont->sitenondualtraining->title = 'test'; $topcont->sitenondualtraining->descripition = $_POST['nd2']; $topcont->sitenondualtraining->link = $_POST['nd3']; $topcont->Save("topcont.xml");
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: DOMDocument::load(): I/O warning : failed to load external entity "/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Warning: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Warning: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for hhvm-3.10.0 - 3.13.2
Warning: No such file or directory Warning: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Warning: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Warning: Permission denied in /in/3PqOR on line 11
Output for 5.3.0 - 5.3.29
Warning: DOMDocument::load(): I/O warning : failed to load external entity "/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Strict Standards: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Strict Standards: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for 5.2.3 - 5.2.17
Warning: DOMDocument::load(): I/O warning : failed to load external entity "/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Strict Standards: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Strict Standards: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for 5.1.0 - 5.2.2
Warning: DOMDocument::load(): I/O warning : failed to load external entity "/in/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Strict Standards: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Strict Standards: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for 5.0.4 - 5.0.5
Warning: I/O warning : failed to load external entity "/in/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Strict Standards: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Strict Standards: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for 5.0.3
Warning: I/O warning : failed to load external entity "/in/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Notice: Undefined property: DOMDocument::$topcont in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Notice: Undefined property: DOMDocument::$sitenondualtraining in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Notice: Undefined property: DOMDocument::$sitenondualtraining in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for 5.0.0 - 5.0.2
Warning: I/O warning : failed to load external entity "/in/<?xml version='1.0' encoding='utf-8'?> <topcont><sitenondualtraining><title>The Heart of Awakening</title> <descripition>nondual</descripition><link>www.test.com/post/latestpost</link> </sitenondualtraining></topcont>" in /in/3PqOR on line 7 Notice: Undefined property: DOMDocument::$topcont in /in/3PqOR on line 8 Strict Standards: Creating default object from empty value in /in/3PqOR on line 8 Notice: Undefined index: nd2 in /in/3PqOR on line 9 Notice: Undefined property: DOMDocument::$sitenondualtraining in /in/3PqOR on line 9 Strict Standards: Creating default object from empty value in /in/3PqOR on line 9 Notice: Undefined index: nd3 in /in/3PqOR on line 10 Notice: Undefined property: DOMDocument::$sitenondualtraining in /in/3PqOR on line 10 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11 Warning: DOMDocument::save(topcont.xml): failed to open stream: Permission denied in /in/3PqOR on line 11
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/3PqOR on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/3PqOR on line 3