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("https://".$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.70.0140.00416.75
8.3.60.0070.00718.52
8.3.50.0130.00521.09
8.3.40.0060.01018.79
8.3.30.0090.00618.85
8.3.20.0050.00320.29
8.3.10.0080.00021.96
8.3.00.0050.00322.51
8.2.180.0110.00418.31
8.2.170.0120.00322.96
8.2.160.0100.00322.04
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.50
8.2.110.0030.00620.89
8.2.100.0100.00317.75
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0000.00817.93
8.2.50.0100.00018.07
8.2.40.0000.01019.26
8.2.30.0050.00318.11
8.2.20.0050.00217.83
8.2.10.0000.00718.07
8.2.00.0040.00418.10
8.1.280.0110.01125.92
8.1.270.0080.00020.38
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00322.06
8.1.230.0060.00622.82
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0050.00318.10
8.1.170.0050.00318.66
8.1.160.0030.00523.81
8.1.150.0040.00718.98
8.1.140.0080.00017.45
8.1.130.0000.00717.66
8.1.120.0090.00017.52
8.1.110.0040.00417.52
8.1.100.0080.00017.52
8.1.90.0000.00717.52
8.1.80.0030.00417.50
8.1.70.0000.00817.53
8.1.60.0070.00017.62
8.1.50.0000.00817.56
8.1.40.0000.00817.59
8.1.30.0040.00417.63
8.1.20.0030.00617.69
8.1.10.0040.00417.57
8.1.00.0040.00417.35
8.0.300.0020.00518.77
8.0.290.0040.00416.88
8.0.280.0000.00818.45
8.0.270.0070.00017.34
8.0.260.0000.00617.29
8.0.250.0070.00017.07
8.0.240.0000.00717.11
8.0.230.0000.00717.02
8.0.220.0000.00717.01
8.0.210.0000.00717.00
8.0.200.0030.00317.09
8.0.190.0070.00317.02
8.0.180.0000.00717.03
8.0.170.0000.00816.99
8.0.160.0000.00816.90
8.0.150.0070.00017.04
8.0.140.0070.00016.98
8.0.130.0030.00313.51
8.0.120.0040.00417.00
8.0.110.0070.00016.89
8.0.100.0050.00217.03
8.0.90.0040.00417.07
8.0.80.0080.00817.04
8.0.70.0000.00816.84
8.0.60.0040.00417.11
8.0.50.0040.00417.06
8.0.30.0110.00717.17
8.0.20.0060.01217.40
8.0.10.0040.00416.94
8.0.00.0110.00816.71
7.4.330.0030.00315.08
7.4.320.0000.00616.65
7.4.300.0060.00016.65
7.4.290.0040.00416.55
7.4.280.0030.00516.65
7.4.270.0030.00316.61
7.4.260.0000.00716.57
7.4.250.0080.00016.61
7.4.240.0050.00316.55
7.4.230.0030.00616.63
7.4.220.0070.01416.73
7.4.210.0060.00916.64
7.4.200.0070.00016.55
7.4.160.0070.01316.53
7.4.150.0120.01317.40
7.4.140.0080.01117.86
7.4.130.0080.01016.50
7.4.120.0130.00516.59
7.4.110.0120.00616.65
7.4.100.0060.01616.43
7.4.90.0060.01316.50
7.4.80.0080.01119.39
7.4.70.0080.01116.44
7.4.60.0080.00816.45
7.4.50.0030.00516.51
7.4.40.0120.01216.60
7.4.30.0170.00016.54
7.4.00.0000.01615.03
7.3.330.0000.00513.30
7.3.320.0060.00013.21
7.3.310.0000.00716.36
7.3.300.0000.00716.23
7.3.290.0070.00716.34
7.3.280.0060.01316.41
7.3.270.0110.00617.40
7.3.260.0030.01616.36
7.3.250.0100.00716.31
7.3.240.0100.00716.49
7.3.230.0080.01116.66
7.3.210.0030.01316.47
7.3.200.0070.01019.39
7.3.190.0060.01516.42
7.3.180.0090.01016.48
7.3.170.0030.01716.60
7.3.160.0120.00616.50
7.2.330.0110.00716.72
7.2.320.0090.00916.56
7.2.310.0130.01316.52
7.2.300.0030.01316.79
7.2.290.0130.00616.49
7.2.60.0060.01016.93
7.2.00.0030.01319.32
7.1.200.0060.00615.53
7.1.100.0050.00818.02
7.1.70.0030.01017.26
7.1.60.0090.01520.03
7.1.50.0070.01117.15
7.1.00.0070.07322.41
7.0.200.0280.00314.68
7.0.60.0030.07720.02
7.0.50.0000.08317.95
7.0.40.0100.03719.96
7.0.30.0230.05720.13
7.0.20.0230.04720.00
7.0.10.0070.05320.45
7.0.00.0130.07720.04
5.6.280.0070.05021.13
5.6.210.0130.07320.63
5.6.200.0130.05318.13
5.6.190.0030.07020.41
5.6.180.0270.07320.45
5.6.170.0270.07720.50
5.6.160.0070.05720.49
5.6.150.0000.07018.09
5.6.140.0030.05718.16
5.6.130.0070.04718.18
5.6.120.0170.06321.00
5.6.110.0200.07021.02
5.6.100.0070.08721.11
5.6.90.0100.08321.00
5.6.80.0030.04320.54
5.6.70.3630.04020.38
5.5.350.0230.03020.53
5.5.340.0130.03717.98
5.5.330.0030.05720.21
5.5.320.0200.06720.29
5.5.310.0400.06720.27
5.5.300.0070.04318.04
5.5.290.0100.08017.84
5.5.280.0170.07320.80
5.5.270.0130.04020.85
5.5.260.0100.06320.77
5.5.250.0070.07020.69
5.5.240.4300.03720.28
5.4.450.1030.07019.59
5.4.440.0830.05319.38
5.4.430.0800.05719.55
5.4.420.0870.05019.31
5.4.410.0830.05319.48
5.4.400.0770.06319.12
5.4.390.0700.05018.78
5.4.380.0870.05319.21
5.4.370.0700.06718.78
5.4.360.0770.06719.27
5.4.350.0670.05719.05
5.4.340.0830.05318.99
5.4.320.0970.04019.05
5.4.310.0800.05019.24
5.4.300.0870.05319.06
5.4.290.0630.06019.24
5.4.280.0600.06319.14
5.4.270.0800.05018.89
5.4.260.0870.04319.18
5.4.250.0800.05319.14
5.4.240.0870.06719.09
5.4.230.0930.08019.13
5.4.220.0800.05719.20
5.4.210.1070.06718.82
5.4.200.0930.04716.67
5.4.190.0800.05019.06
5.4.180.0870.05319.09
5.4.170.0870.06018.95
5.4.160.0800.05019.10
5.4.150.1000.04019.10
5.4.140.0800.06016.27
5.4.130.0830.05016.34
5.4.120.0830.05716.34
5.4.110.0700.04716.20
5.4.100.0700.05016.48
5.4.90.0730.05316.32
5.4.80.0770.05016.57
5.4.70.0700.05016.36
5.4.60.0000.03316.36
5.4.50.0000.05716.04
5.4.40.0200.04016.40
5.4.30.0270.04016.17
5.4.20.0300.03716.43

preferences:
58.13 ms | 401 KiB | 5 Q