3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = '<OperatingProfile> <RegularDayType> <DaysOfWeek> <Tuesday /> <Wednesday /> <Thursday /> <Friday /> </DaysOfWeek> </RegularDayType> <SpecialDaysOperation> <DaysOfNonOperation> <DateRange> <StartDate>2015-12-24</StartDate> <EndDate>2016-01-01</EndDate> </DateRange> </DaysOfNonOperation> </SpecialDaysOperation> <BankHolidayOperation> <DaysOfNonOperation> <AllBankHolidays /> </DaysOfNonOperation> </BankHolidayOperation> </OperatingProfile>'; $simpleXML = simplexml_load_string($xml); $stuff = $simpleXML->{'OperatingProfile'}->children(); print_r($stuff);
Output for 7.1.0 - 7.2.0
Warning: print_r(): Node no longer exists in /in/e2KNX on line 32 SimpleXMLElement Object ( )
Output for 5.3.19 - 7.0.20
SimpleXMLElement Object Warning: print_r(): Node no longer exists in /in/e2KNX on line 32 ( )