Fatal error: Uncaught TypeError: SimpleXMLElement::addChild(): Argument #1 ($qualifiedName) must be of type string, DateTime given in /in/KgWjt:15
Stack trace:
#0 [internal function]: SimpleXMLElement->addChild(Object(DateTime), 'birthday')
#1 /in/KgWjt(15): array_walk_recursive(Array, Array)
#2 {main}
thrown in /in/KgWjt on line 15
Process exited with code 255.
Warning: SimpleXMLElement::addChild() expects parameter 1 to be string, object given in /in/KgWjt on line 15
<?xml version="1.0"?>
<root><1>id</1><Jacopo>name</Jacopo><1>male</1><Programming>0</Programming><TV Shows>1</TV Shows><Skiing>2</Skiing></root>
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/KgWjt on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/KgWjt on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/KgWjt on line 6