3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationHeader xmlns="http://www.travel.domain/"> <AgentUserId>1030</AgentUserId> <LoginName>wtb1030</LoginName> <Password>wtb1030</Password> <IPAddress>100.100.100.100</IPAddress> </AuthenticationHeader> </soap:Header> <soap:Body> <ProcessXML xmlns="http://www.travel.domain/"> <RequestInfo> <HotelDetailSearch> <RequestAuditInfo> <RequestType>PXML_GetHotelDetailSearch</RequestType> <RequestTime>2014-08-20T07:50:54</RequestTime> <RequestResource>ota</RequestResource> </RequestAuditInfo> <RequestParameters> <HotelWithRate>true</HotelWithRate> <ProductId>1</ProductId> <NationalityCode></NationalityCode> <CountryCode>TH</CountryCode> <CityCode>BKK</CityCode> <AreaCode></AreaCode> <HotelCode>BKKAMS</HotelCode> <CheckInDate>2014-08-29T12:00:00</CheckInDate> <CheckOutDate>2014-08-30T12:00:00</CheckOutDate> <Availablity>AVLOR</Availablity> <BookingRateRefId></BookingRateRefId> <RoomOccupancy> <RoomType RoomAdultCode="1SG" RoomNumber="1"> <Adults>1</Adults> <Childs>0</Childs> <ChildWithBed>0</ChildWithBed> <ChildAges/> </RoomType> </RoomOccupancy> </RequestParameters> </HotelDetailSearch> </RequestInfo> </ProcessXML> </soap:Body> </soap:Envelope> XML ); print_r($xml);
based on AEfMe
Output for 5.1.0 - 7.1.0
SimpleXMLElement Object ( )
Output for 5.0.0 - 5.0.5
SimpleXMLElement Object ( [Header] => SimpleXMLElement Object ( [AuthenticationHeader] => SimpleXMLElement Object ( [AgentUserId] => 1030 [LoginName] => wtb1030 [Password] => wtb1030 [IPAddress] => 100.100.100.100 ) ) [Body] => SimpleXMLElement Object ( [ProcessXML] => SimpleXMLElement Object ( [RequestInfo] => SimpleXMLElement Object ( [HotelDetailSearch] => SimpleXMLElement Object ( [RequestAuditInfo] => SimpleXMLElement Object ( [RequestType] => PXML_GetHotelDetailSearch [RequestTime] => 2014-08-20T07:50:54 [RequestResource] => ota ) [RequestParameters] => SimpleXMLElement Object ( [HotelWithRate] => true [ProductId] => 1 [NationalityCode] => SimpleXMLElement Object ( ) [CountryCode] => TH [CityCode] => BKK [AreaCode] => SimpleXMLElement Object ( ) [HotelCode] => BKKAMS [CheckInDate] => 2014-08-29T12:00:00 [CheckOutDate] => 2014-08-30T12:00:00 [Availablity] => AVLOR [BookingRateRefId] => SimpleXMLElement Object ( ) [RoomOccupancy] => SimpleXMLElement Object ( [RoomType] => SimpleXMLElement Object ( [Adults] => 1 [Childs] => 0 [ChildWithBed] => 0 [ChildAges] => SimpleXMLElement Object ( ) ) ) ) ) ) ) ) )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/Oi0A4 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/Oi0A4 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/Oi0A4 on line 2