3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8" ?><invoice></invoice>'); $delcond = $xml->addChild('delcond', 'Hansen & Hansen');
Output for 5.1.3 - 7.3.0
Warning: SimpleXMLElement::addChild(): unterminated entity reference Hansen in /in/vhf4e on line 4
Output for 5.0.0 - 5.1.2
Fatal error: Call to undefined method SimpleXMLElement::addChild() in /in/vhf4e on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/vhf4e on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/vhf4e on line 3