3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = '<ResponseXML><ReturnStatus>1</ReturnStatus><ReturnMessage>SUCCESS</ReturnMessage><RequestTime>20150430151542</RequestTime><ResponseTime>20150430151543</ResponseTime><CardInfo><CardNo>9999000000072720</CardNo><MemberID>2422732</MemberID><PrintedName>Xiaoheng Wang</PrintedName><MembershipTypeCode>MSR</MembershipTypeCode><MembershipStatusCode>ACTIVE</MembershipStatusCode><MembershipPhoto /><IssueDate>2015-03-26T00:00:00</IssueDate><EffectiveDate>2015-03-26T00:00:00</EffectiveDate><ExpiryDate>2016-03-26T00:00:00</ExpiryDate><Printed>false</Printed><PrintedDate xsi:nil="true" /><RenewedDate xsi:nil="true" /><tmpEffectiveDate xsi:nil="true" /><tmpExpiryDate xsi:nil="true" /><tmpMembershipStatusCode /><PointsBAL>5.0000</PointsBAL><TotalPointsBAL>5.0000</TotalPointsBAL><HoldingPoints>0</HoldingPoints><Remarks /><MembershipDiscount xsi:nil="true" /><TierCode>Welcome</TierCode><LoyaltyMessage>for-iCare-8898XXXXXXXXXXXX</LoyaltyMessage><DollarToPointsRatio /><RewardCycleLists><RewardCycleInfo Type="Current" Value="5.0000" ExpiringDate="2016-03-26T00:00:00" /></RewardCycleLists><IsSupplementary>false</IsSupplementary><isBurnSupplementaryCard>false</isBurnSupplementaryCard><RelationID>188559A7-9B25-486A-9989-4F9D1EFA5771</RelationID><PrimaryCardNo /><PrimaryRelationID /><PrimaryCardExpiryDate xsi:nil="true" /><PrimaryCardEffectiveDate xsi:nil="true" /><PtsHoldingDays>0</PtsHoldingDays><Passcode>75310179 </Passcode><StoredValueBalance>0.0000</StoredValueBalance><Currency /><LastVisitedDate>2015-04-26T00:00:00</LastVisitedDate><LastVisitedOutlet>518</LastVisitedOutlet><PointsToNextTier /><NettToNextTier /></CardInfo><MemberInfo><MemberID>2422732</MemberID><Salutation /><Name>Xiaoheng Wang</Name><NRIC /><Passport /><Email>wangxiaoheng0319@gmail.com</Email><Gender>F</Gender><DOB>1992-03-19T00:00:00</DOB><Nationality /><Block /><Level /><Unit /><Street /><Building /><PostalCode /><Country /><Address1> </Address1><Address2> </Address2><Address3> </Address3><ContactNo /><MobileNo>93585185</MobileNo><FaxNo /><ReferrerCode /><FacebookID /><FacebookName /><FacebookPhotoLink /><FacebookToken /><FacebookTokenExpiry /><FullPhotoName /><Base64PhotoString /><PhotoLink /></MemberInfo><MembershipInfo><TotalSpending>8.2</TotalSpending><TotalPoints>5</TotalPoints><TotalVisits>1</TotalVisits><LastVisitedOutletCode>518</LastVisitedOutletCode><MostCycleVisitedOutletCode>518</MostCycleVisitedOutletCode><TotalCycleVisits>1</TotalCycleVisits><TotalCycleSpending>8.2</TotalCycleSpending><TotalCyclePoints>5</TotalCyclePoints><TotalBalPoints>5</TotalBalPoints><CurrentMonthSpending>8.2</CurrentMonthSpending><CurrentMonth_1Spending>0</CurrentMonth_1Spending><CurrentMonth_2Spending>0</CurrentMonth_2Spending><TotalNettSpending>8.2</TotalNettSpending><TotalCycleNettSpending>8.2</TotalCycleNettSpending><CurrentMonthNettSpending>8.2</CurrentMonthNettSpending><CurrentMonth_1NettSpending>0</CurrentMonth_1NettSpending><CurrentMonth_2NettSpending>0</CurrentMonth_2NettSpending></MembershipInfo><TotalActiveVoucherCount>0</TotalActiveVoucherCount><VoucherLists /><ReceiptMessage>Card No : 9999000000072720 Tier : Welcome Stars Awarded: 0 Stars Balance: 5 Stored Value Balance: 0.0000 </ReceiptMessage></ResponseXML>'; $abc = simplexml_load_string($xml); echo (string) $abc->CardLists->CardInfo;exit;
based on JpPkY
Output for 5.1.0 - 7.2.0
Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on PrintedDate is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): -03-26T00:00:00</ExpiryDate><Printed>false</Printed><PrintedDate xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on RenewedDate is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): rinted>false</Printed><PrintedDate xsi:nil="true" /><RenewedDate xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on tmpEffectiveDate is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): xsi:nil="true" /><RenewedDate xsi:nil="true" /><tmpEffectiveDate xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on tmpExpiryDate is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): i:nil="true" /><tmpEffectiveDate xsi:nil="true" /><tmpExpiryDate xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on MembershipDiscount is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): L><HoldingPoints>0</HoldingPoints><Remarks /><MembershipDiscount xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on PrimaryCardExpiryDate is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): nID><PrimaryCardNo /><PrimaryRelationID /><PrimaryCardExpiryDate xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6 Warning: simplexml_load_string(): namespace error : Namespace prefix xsi for nil on PrimaryCardEffectiveDate is not defined in /in/XnVev on line 6 Warning: simplexml_load_string(): PrimaryCardExpiryDate xsi:nil="true" /><PrimaryCardEffectiveDate xsi:nil="true" in /in/XnVev on line 6 Warning: simplexml_load_string(): ^ in /in/XnVev on line 6
Output for 5.0.0 - 5.0.5
Warning: namespace error : Namespace prefix xsi for nil on PrintedDate is not defined in /in/XnVev on line 6 Warning: -03-26T00:00:00</ExpiryDate><Printed>false</Printed><PrintedDate xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6 Warning: namespace error : Namespace prefix xsi for nil on RenewedDate is not defined in /in/XnVev on line 6 Warning: rinted>false</Printed><PrintedDate xsi:nil="true" /><RenewedDate xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6 Warning: namespace error : Namespace prefix xsi for nil on tmpEffectiveDate is not defined in /in/XnVev on line 6 Warning: xsi:nil="true" /><RenewedDate xsi:nil="true" /><tmpEffectiveDate xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6 Warning: namespace error : Namespace prefix xsi for nil on tmpExpiryDate is not defined in /in/XnVev on line 6 Warning: i:nil="true" /><tmpEffectiveDate xsi:nil="true" /><tmpExpiryDate xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6 Warning: namespace error : Namespace prefix xsi for nil on MembershipDiscount is not defined in /in/XnVev on line 6 Warning: L><HoldingPoints>0</HoldingPoints><Remarks /><MembershipDiscount xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6 Warning: namespace error : Namespace prefix xsi for nil on PrimaryCardExpiryDate is not defined in /in/XnVev on line 6 Warning: nID><PrimaryCardNo /><PrimaryRelationID /><PrimaryCardExpiryDate xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6 Warning: namespace error : Namespace prefix xsi for nil on PrimaryCardEffectiveDate is not defined in /in/XnVev on line 6 Warning: PrimaryCardExpiryDate xsi:nil="true" /><PrimaryCardEffectiveDate xsi:nil="true" in /in/XnVev on line 6 Warning: ^ in /in/XnVev on line 6
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/XnVev on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/XnVev on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/XnVev on line 6