3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /* dynamic - interactive design - html5 */ $url = "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL"; // create new SoapClient object $edoc1 = new SoapClient($url,array('trace' => 1, 'exception' => 0, 'cache_wsdl' => 0)); $user_new = array(); $docCode = "398244e4-2343-4af8-a3e7-eeb70459ae93"; $docPwd = "9adccda9-4a8c-4a7a-9725-9ba5d259c381"; // initialize session by startDocSession $session_dynamic = $edoc1->startDocSession(array("docCode" => $docCode, "docPwd" => $docPwd)); // and save sessionId $session_id = $session_dynamic->startDocSessionResult->docSession; // get info by getCurrentSession $session_info = $edoc1->getCurrentSession(array("docSessionID"=> $session_id)); $user_info = $session_info->getCurrentSessionResult; // print get background info //print "<h3>print get background info ($session_id)</h3><pre>"; print_r($user_info); print "</pre>"; echo "<hr>"; // modify elementValue about first element $nome_file = "http://apr.pixartprinting.com/test/test.jpg"; $user_new[0] = (object) array( "elementName" => "background", "elementValue" => $nome_file, "imageData" => base64_encode(file_get_contents($nome_file)) ); $user_new = (object) $user_new; // print userEntries object print "<h3>userEntries object</h3>"; var_dump($user_new); // update data by updateCurrentSession using same sessionId and element modified // print response about update data print "<h3>print response about update data ($session_id)</h3>"; var_dump($edoc1->updateCurrentSession(array("docSessionID" => $session_id, "userValues"=> $user_new))); echo "<hr>"; // get info by getCurrentSession using same sessionId $session_info = $edoc1->getCurrentSession(array("docSessionID"=> $session_id)); // print get background info print "<h3>print get background info ($session_id)</h3><pre>"; print_r($user_info->inputForm->formElement[0]); print "</pre>"; ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/P3Tha:6 Stack trace: #0 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' : failed to load external entity "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL" in /in/P3Tha:6 Stack trace: #0 /in/P3Tha(6): SoapClient->SoapClient('https://editor....', Array) #1 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.2.7 - 5.2.17
Notice: SoapClient::SoapClient(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/P3Tha on line 6 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL" in /in/P3Tha on line 6 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' : failed to load external entity "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL" in /in/P3Tha:6 Stack trace: #0 /in/P3Tha(6): SoapClient->SoapClient('https://editor....', Array) #1 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.2.0 - 5.2.6
Notice: SoapClient::SoapClient(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/P3Tha on line 6 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL" in /in/P3Tha on line 6 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' in /in/P3Tha:6 Stack trace: #0 /in/P3Tha(6): SoapClient->SoapClient('https://editor....', Array) #1 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.1.0 - 5.1.6
Notice: SoapClient::__construct(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/P3Tha on line 6 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL" in /in/P3Tha on line 6 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' in /in/P3Tha:6 Stack trace: #0 /in/P3Tha(6): SoapClient->__construct('https://editor....', Array) #1 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.0.4 - 5.0.5
Notice: SoapClient::__construct(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/P3Tha on line 6 Notice: SoapClient::__construct(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/P3Tha on line 6 Warning: I/O warning : failed to load external entity "https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL" in /in/P3Tha on line 6 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' in /in/P3Tha:6 Stack trace: #0 /in/P3Tha(6): SoapClient->__construct('https://editor....', Array) #1 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.0.3
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' in /in/P3Tha:6 Stack trace: #0 /in/P3Tha(6): SoapClient->__construct('https://editor....', Array) #1 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://editor.pixartprinting.com/services/flexdoc.asmx?WSDL' in /in/P3Tha:6 Stack trace: #0 {main} thrown in /in/P3Tha on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: soapclient in /in/P3Tha on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: soapclient in /in/P3Tha on line 6