3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = simplexml_load_string('<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><GetWorkOrderDetailsResponse xmlns="http://www.clicksoftware.com"><GetWorkOrderDetailsResult xmlns:a="http://schemas.datacontract.org/2004/07/W6DTVWebService.DTVGetWO" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><a:customDataField i:nil="true"></a:customDataField><a:messageListField i:nil="true"></a:messageListField><a:workOrderField><a:activityIdField>1-1XGLUSO8</a:activityIdField><a:appointmentTaskNumberField>1</a:appointmentTaskNumberField><a:compatibilityListField><a:GetWorkOrderDetailsResponseEntityWorkOrderCompatibility><a:nameField>InternetConnectivity</a:nameField><a:valueField>yes</a:valueField></a:GetWorkOrderDetailsResponseEntityWorkOrderCompatibility><a:GetWorkOrderDetailsResponseEntityWorkOrderCompatibility><a:nameField>MRV</a:nameField><a:valueField>programming</a:valueField></a:GetWorkOrderDetailsResponseEntityWorkOrderCompatibility><a:GetWorkOrderDetailsResponseEntityWorkOrderCompatibility><a:nameField>SWiM</a:nameField><a:valueField>true</a:valueField></a:GetWorkOrderDetailsResponseEntityWorkOrderCompatibility></a:compatibilityListField><a:workOrderLineItemListField><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>New</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>IRD - ADVANCED WHOLE-HOME DVR</a:productLineField><a:productNameField>DIRECTV HR44-500</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>New</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>IRD - CLIENT</a:productLineField><a:productNameField>DIRECTV C31-700</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>New</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>IRD - CLIENT</a:productLineField><a:productNameField>DIRECTV C31-700</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>New</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>IRD - CLIENT</a:productLineField><a:productNameField>DIRECTV C31-700</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Deleted</a:categoryField><a:deliveryMethodField>Customer Owned</a:deliveryMethodField><a:productLineField>IRD - HD/DVR COMBO</a:productLineField><a:productNameField>IRD - HD/DVR COMBO</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Deleted</a:categoryField><a:deliveryMethodField>Customer Owned</a:deliveryMethodField><a:productLineField>KA/KU LNB SWM</a:productLineField><a:productNameField>KA/KU LNB SWM 3</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Support Hardware Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>New</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>MISCELLANEOUS HARDWARE</a:productLineField><a:productNameField>SWM ODU HARDWARE</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Support Hardware Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>New</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>MISCELLANEOUS LABOR PRODUCTS 2</a:productLineField><a:productNameField>KA/KU LNB SWM LABOR</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Deleted</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>POWER INSERTER LNB</a:productLineField><a:productNameField>POWER INSERTER LNB</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Deleted</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>BROADBAND RECONNECT</a:productLineField><a:productNameField>BROADBAND RECONNECT</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Existing</a:categoryField><a:deliveryMethodField i:nil="true"></a:deliveryMethodField><a:productLineField>IRD - STANDARD</a:productLineField><a:productNameField>DIRECTV D12-100</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Existing</a:categoryField><a:deliveryMethodField i:nil="true"></a:deliveryMethodField><a:productLineField>IRD - KA/KU</a:productLineField><a:productNameField>DIRECTV H23-600</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Existing</a:categoryField><a:deliveryMethodField i:nil="true"></a:deliveryMethodField><a:productLineField>IRD - HD/DVR COMBO</a:productLineField><a:productNameField>DIRECTV HR24-500</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Existing</a:categoryField><a:deliveryMethodField i:nil="true"></a:deliveryMethodField><a:productLineField>IRD - KA/KU</a:productLineField><a:productNameField>DIRECTV H24-700</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>No Action Taken</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Existing</a:categoryField><a:deliveryMethodField i:nil="true"></a:deliveryMethodField><a:productLineField>IRD - KA/KU</a:productLineField><a:productNameField>DIRECTV H24-700</a:productNameField><a:statusField>Open</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem><a:actionCodeField>Support Hardware Installed</a:actionCodeField><a:capabilityListField i:nil="true"></a:capabilityListField><a:categoryField>Added</a:categoryField><a:deliveryMethodField>Tech Delivers</a:deliveryMethodField><a:productLineField>MULTI-ROOM VIEWING</a:productLineField><a:productNameField>MRV ENABLED</a:productNameField><a:statusField>Closed</a:statusField></a:GetWorkOrderDetailsResponseEntityWorkOrderWorkOrderLineItem></a:workOrderLineItemListField></a:workOrderField></GetWorkOrderDetailsResult></GetWorkOrderDetailsResponse></s:Body></s:Envelope>'); $json = json_encode($xml); echo "<pre>"; print_r($json); echo "</pre>";
Output for 5.2.0 - 7.2.0
<pre>{}</pre>
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_encode() in /in/cJBV0 on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_string() in /in/cJBV0 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_string() in /in/cJBV0 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_string() in /in/cJBV0 on line 3