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"; } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.00718.43
8.3.50.0150.00721.09
8.3.40.0090.00618.76
8.3.30.0120.00418.76
8.3.20.0040.00420.39
8.3.10.0080.00021.73
8.3.00.0030.00522.39
8.2.180.0130.01016.75
8.2.170.0070.00722.96
8.2.160.0100.00322.09
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00617.63
8.2.110.0060.00319.14
8.2.100.0120.00017.84
8.2.90.0040.00418.16
8.2.80.0050.00318.66
8.2.70.0000.00817.63
8.2.60.0000.00818.05
8.2.50.0030.00518.07
8.2.40.0050.00318.21
8.2.30.0070.00017.97
8.2.20.0000.00817.64
8.2.10.0020.00518.09
8.2.00.0000.00818.07
8.1.280.0140.00725.92
8.1.270.0030.00623.90
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00319.27
8.1.230.0080.00417.70
8.1.220.0040.00417.76
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0080.00018.61
8.1.160.0040.00418.85
8.1.150.0040.00719.04
8.1.140.0030.00517.50
8.1.130.0040.00417.85
8.1.120.0000.00917.55
8.1.110.0040.00417.54
8.1.100.0000.00717.46
8.1.90.0070.00017.48
8.1.80.0030.00517.40
8.1.70.0000.00717.40
8.1.60.0000.00817.63
8.1.50.0060.00317.57
8.1.40.0030.00517.45
8.1.30.0030.00517.55
8.1.20.0000.00817.61
8.1.10.0020.00517.56
8.1.00.0080.00017.51
8.0.300.0000.00918.84
8.0.290.0070.00016.88
8.0.280.0070.00018.48
8.0.270.0000.00717.18
8.0.260.0000.00717.30
8.0.250.0040.00417.02
8.0.240.0000.00717.00
8.0.230.0070.00016.91
8.0.220.0030.00316.96
8.0.210.0000.00716.89
8.0.200.0000.00716.92
8.0.190.0060.00317.05
8.0.180.0040.00417.05
8.0.170.0000.00817.03
8.0.160.0080.00017.07
8.0.150.0040.00416.91
8.0.140.0030.00616.86
8.0.130.0000.00513.43
8.0.120.0030.00716.96
8.0.110.0000.00717.01
8.0.100.0050.00216.88
8.0.90.0000.00716.87
8.0.80.0030.01216.96
8.0.70.0040.00417.07
8.0.60.0050.00216.95
8.0.50.0040.00416.93
8.0.30.0110.00717.34
8.0.20.0120.00917.44
8.0.10.0000.00717.17
8.0.00.0100.00816.94
7.4.330.0000.00615.08
7.4.320.0050.00316.54
7.4.300.0000.00616.54
7.4.290.0000.00716.65
7.4.280.0080.00016.52
7.4.270.0040.00416.57
7.4.260.0030.00316.62
7.4.250.0050.00216.58
7.4.240.0040.00416.58
7.4.230.0030.00616.45
7.4.220.0070.01116.71
7.4.210.0060.00916.59
7.4.200.0000.00716.55
7.4.160.0100.00716.52
7.4.150.0060.01217.40
7.4.140.0070.01217.86
7.4.130.0090.00816.57
7.4.120.0130.00816.51
7.4.110.0030.01416.45
7.4.100.0100.00716.59
7.4.90.0060.01216.50
7.4.80.0140.00619.39
7.4.70.0030.01216.61
7.4.60.0100.00716.64
7.4.50.0030.00516.55
7.4.40.0110.00716.50
7.4.30.0110.00616.68
7.4.00.0130.00314.90
7.3.330.0060.00013.10
7.3.320.0030.00313.19
7.3.310.0040.00416.16
7.3.300.0030.00316.25
7.3.290.0100.00616.41
7.3.280.0100.00916.35
7.3.270.0070.01417.40
7.3.260.0120.00616.56
7.3.250.0150.00716.39
7.3.240.0070.01016.57
7.3.230.0120.00816.50
7.3.210.0030.01416.66
7.3.200.0110.00519.39
7.3.190.0130.00716.33
7.3.180.0120.00416.36
7.3.170.0120.00916.43
7.3.160.0100.00716.57
7.3.10.0040.00716.63
7.3.00.0030.01216.65
7.2.330.0040.01516.63
7.2.320.0110.00716.76
7.2.310.0070.01316.57
7.2.300.0030.01216.73
7.2.290.0100.00916.62
7.2.130.0000.01316.88
7.2.120.0060.00916.84
7.2.110.0060.00616.58
7.2.100.0060.00917.05
7.2.90.0060.00916.91
7.2.80.0000.01217.01
7.2.70.0000.01217.00
7.2.60.0070.00516.83
7.2.50.0130.00316.68
7.2.40.0060.00617.02
7.2.30.0040.00817.07
7.2.20.0030.01117.05
7.2.10.0060.00616.91
7.2.00.0050.00818.14
7.1.250.0000.01515.80
7.1.200.0070.00715.48
7.1.100.0060.00618.21
7.1.70.0030.00717.52
7.1.60.0100.01620.03
7.1.50.0130.01317.23
7.1.00.0070.07722.67
7.0.200.0440.00014.79
7.0.100.0130.05020.46
7.0.90.0200.04320.29
7.0.80.0170.07020.33
7.0.70.0430.06720.31
7.0.60.0100.08320.38
7.0.50.0100.06720.82
7.0.40.0170.04720.29
7.0.30.0100.08020.52
7.0.20.0100.10020.29
7.0.10.0030.07320.43
7.0.00.0070.08720.55
5.6.280.0000.07721.28
5.6.250.0000.08720.99
5.6.240.0030.07321.12
5.6.230.0030.03721.03
5.6.220.0030.07021.00
5.6.210.0100.07020.95
5.6.200.0100.06021.39
5.6.190.0170.08021.38
5.6.180.0170.07721.28
5.6.170.0100.08021.38
5.6.160.0070.09021.40
5.6.150.0100.08021.54
5.6.140.0070.04721.48
5.6.130.0000.05021.31
5.6.120.0030.04321.40
5.6.110.0130.03721.43
5.6.100.0000.03721.49
5.6.90.0100.03021.29
5.6.80.0000.04020.77
5.6.70.0070.03320.97
5.6.60.0030.03720.73
5.6.50.0100.03020.78
5.6.40.0030.04020.87
5.6.30.0000.04320.82
5.6.20.0030.04020.95
5.6.10.0030.03720.85
5.6.00.0070.03720.80
5.5.380.0230.03720.64
5.5.370.0030.05020.73
5.5.360.0100.04320.69
5.5.350.0100.04720.84
5.5.340.0030.09321.19
5.5.330.0000.05021.31
5.5.320.0100.06321.20
5.5.310.0130.04021.18
5.5.300.0070.04321.26
5.5.290.0030.04321.21
5.5.280.0070.03721.26
5.5.270.0030.04321.18
5.5.260.0070.04021.04
5.5.250.0030.04321.09
5.5.240.0070.03720.54
5.5.230.0030.04320.71
5.5.220.0070.03020.65
5.5.210.0100.03320.43
5.5.200.0100.03020.65
5.5.190.0030.04320.34
5.5.180.0070.03720.36
5.5.160.0030.05020.63
5.5.150.0070.03720.63
5.5.140.0030.04020.48
5.5.130.0070.03720.61
5.5.120.0030.03320.64
5.5.110.0030.03320.53
5.5.100.0000.03720.52
5.5.90.0000.04320.49
5.5.80.0030.03320.46
5.5.70.0030.04320.42
5.5.60.0030.03320.34
5.5.50.0000.03720.26
5.5.40.0100.03720.50
5.5.30.0200.02720.53
5.5.20.0130.07320.50
5.5.10.0130.06720.27
5.5.00.0100.08020.46
5.4.450.0000.04319.73
5.4.440.0070.03719.63
5.4.430.0000.04319.69
5.4.420.0030.04019.71
5.4.410.0100.03319.55
5.4.400.0070.03719.44
5.4.390.0030.03319.35
5.4.380.0130.03019.30
5.4.370.0030.06719.62
5.4.360.0070.02719.30
5.4.350.0030.03319.56
5.4.340.0030.03319.30
5.4.320.0030.04319.40
5.4.310.0030.03319.56
5.4.300.0030.04019.25
5.4.290.0000.05019.32
5.4.280.0000.04319.34
5.4.270.0030.03719.25
5.4.260.0170.02319.15
5.4.250.0030.03319.34
5.4.240.0100.02719.25
5.4.230.0070.03019.48
5.4.220.0000.03719.37
5.4.210.0030.03719.23
5.4.200.0030.08319.43
5.4.190.0030.08319.47
5.4.180.0100.03719.46
5.4.170.0070.07019.14
5.4.160.0070.07019.42
5.4.150.0100.07319.58
5.4.140.0030.07716.33
5.4.130.0070.06316.36
5.4.120.0170.06016.36
5.4.110.0100.07016.30
5.4.100.0000.06316.26
5.4.90.0100.07016.26
5.4.80.0030.05016.36
5.4.70.0070.05716.46
5.4.60.0100.07016.26
5.4.50.0100.03716.35
5.4.40.0070.08016.26
5.4.30.0130.04716.20
5.4.20.0100.07016.27
5.4.10.0070.06716.27
5.4.00.0100.06015.81

preferences:
71.19 ms | 401 KiB | 5 Q