3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = '<items><item/><item/><item/></items>'; $dom = new DOMDocument90; $dom->loadXml($xm); var_dump(iterator_to_array($dom->documentElement->childNodes));
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'DOMDocument90' not found in /in/u9WY6:5 Stack trace: #0 {main} thrown in /in/u9WY6 on line 5
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Class undefined: DOMDocument90 in /in/u9WY6 on line 5
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'DOMDocument90' not found in /in/u9WY6 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument90 in /in/u9WY6 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument90 in /in/u9WY6 on line 5