3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = "c3-test.wirecard.com"; $port = 443; $path = "/secure/ssl-gateway"; $login = "56500"; $pass = "TestXAPTER"; $errno = "401"; $errstr = "auther"; $poststring = "<?xml version='1.0' encoding='UTF-8'?> <WIRECARD_BXML xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance' xsi:noNamespaceSchemaLocation='wirecard.xsd'> <W_REQUEST> <W_JOB> <JobID>job 2</JobID> <BusinessCaseSignature>56500</BusinessCaseSignature> <FNC_CC_TRANSACTION> <FunctionID>WireCard Test</FunctionID> <CC_TRANSACTION mode='demo'> <TransactionID>2</TransactionID> <Amount>10</Amount> <Currency>USD</Currency> <CountryCode>US</CountryCode> <RECURRING_TRANSACTION> <Type>Single</Type> </RECURRING_TRANSACTION> <CREDIT_CARD_DATA> <CreditCardNumber>4200000000000000</CreditCardNumber> <CVC2>000</CVC2> <ExpirationYear>2016</ExpirationYear> <ExpirationMonth>01</ExpirationMonth> <CardHolderName>Wirecard Test</CardHolderName> </CREDIT_CARD_DATA> <CONTACT_DATA> <IPAddress>67.29.138.2</IPAddress> </CONTACT_DATA> <CORPTRUSTCENTER_DATA> <ADDRESS> <Address1></Address1> <City></City> <ZipCode></ZipCode> <State></State> <Country></Country> <Phone></Phone> <Email>support@wirecard.com</Email> </ADDRESS> </CORPTRUSTCENTER_DATA> </CC_TRANSACTION> </FNC_CC_TRANSACTION> </W_JOB> </W_REQUEST> </WIRECARD_BXML>"; $fp = fsockopen("ssl://".$host, $port, $errno, $errstr, 5); if(!$fp){ //error; tell us echo "Error: $errstr ($errno)\n"; }else{ //send the server request fputs($fp, "POST $path HTTP/1.0\r\n"); fputs($fp, "Host: $host\r\n"); fputs($fp,"Content-type: text/xml\r\n"); fputs($fp, "Content-length: ".strlen($poststring)."\r\n"); fputs($fp, "Authorization: Basic ".base64_encode($login.":".$pass."\r\n")); fputs($fp, "Connection: close\r\n"); fputs($fp,"\r\n"); fputs($fp, $poststring . "\r\n\r\n"); // prepare for reading the response stream_set_timeout($fp,30); // here we save the response body - XML response from WireCard $output = ""; // here we store the HTTP headers $headers= ""; // temp. variable for detecting the end of HTTP headers. $is_header = 1; while(!feof($fp)) { $buffer = fgets($fp, 128); // fgets on SSL socket if ($buffer == FALSE) { break; } if (!$is_header) { $output .= $buffer; } if ($buffer == "\r\n") { $is_header = 0; } if ($is_header) { $headers .= $buffer; } } //close fp - we are done with it fclose($fp); // print the results in Web Browser - and convert all special // characters (like <,>,...) to HTML entities echo "<PRE>\n"; echo htmlentities($headers); echo "\n"; echo htmlentities($output); echo "</PRE>\n"; } ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: fsockopen(): Unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0)
Output for 5.4.1 - 5.4.11, 5.4.14, 7.2.0 - 7.2.33, 7.3.30 - 7.3.33, 7.4.0 - 7.4.33
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (0)
Output for 7.3.29
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22060)
Output for 7.3.28
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (21887)
Output for 7.3.27
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22037)
Output for 7.3.26
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (21983)
Output for 7.3.25
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (21848)
Output for 7.3.24
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22078)
Output for 7.3.23
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22006)
Output for 7.3.21
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22003)
Output for 7.3.20
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (21949)
Output for 7.3.19
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22031)
Output for 7.3.18
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (21919)
Output for 7.3.17
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (22027)
Output for 7.3.16
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (21893)
Output for 7.3.0 - 7.3.1
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (1852400175)
Output for 5.4.13, 7.1.25
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (32547)
Output for 7.1.20
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (32596)
Output for 7.0.20, 7.1.5 - 7.1.10
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: System error in /in/v17sn on line 114 Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (php_network_getaddresses: getaddrinfo failed: System error) in /in/v17sn on line 114 Error: php_network_getaddresses: getaddrinfo failed: System error (0)
Output for 5.4.15 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.10, 7.1.0
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/v17sn on line 114 Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /in/v17sn on line 114 Error: php_network_getaddresses: getaddrinfo failed: Name or service not known (0)
Output for 5.4.12
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (32697)
Output for 5.4.0
Warning: fsockopen(): unable to connect to ssl://c3-test.wirecard.com:443 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /in/v17sn on line 114 Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (32657)

preferences:
222.97 ms | 402 KiB | 285 Q