3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.3.11, 4.4.0 - 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

preferences:
170.67 ms | 401 KiB | 310 Q