3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "robstark@winterfell.com"; $secretKey = sha1("L1v3rp00@"); $verb = "GET"; $body = json_encode("{\"Request\":{\"satn\":\"213456\"},\"emailAddress\":\"robstark@winterfell.com\"}"); $contentmd5 = base64_encode(md5($body, true)); $contentType = "application/json"; $dateNow = gmdate("c"); $authCode = base64_encode(hmac-sha1($secretKey, $verb . ‘\n’ . $contentmd5 . ‘\n’ . $contentType . ‘\n’ . $dateNow)); $ch = curl_init("http://conapi.reddotnetwork.com/1.0/consumer"); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $verb); curl_setopt($ch, CURLOPT_POSTFIELDS, $body); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json","Content-Length: " . strlen($body),"Content-MD5: " .$contentmd5, "Authorization: RDN " . $username, ":". ":" . $authCode));

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.0150.00418.50
8.3.50.0070.01222.05
8.3.40.0110.00718.92
8.3.30.0090.00619.03
8.3.20.0000.00820.38
8.3.10.0030.00522.13
8.3.00.0060.00622.46
8.2.180.0150.00417.00
8.2.170.0040.01422.96
8.2.160.0070.00720.95
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00417.75
8.2.110.0090.00022.25
8.2.100.0040.00817.78
8.2.90.0040.00419.05
8.2.80.0090.00018.05
8.2.70.0050.00417.74
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0000.00818.03
8.2.30.0080.00018.08
8.2.20.0040.00417.64
8.2.10.0050.00317.81
8.2.00.0030.00717.80
8.1.280.0110.00425.92
8.1.270.0090.00023.98
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.41
8.1.230.0080.00319.01
8.1.220.0040.00417.79
8.1.210.0000.00918.77
8.1.200.0000.00817.47
8.1.190.0040.00417.40
8.1.180.0030.00518.10
8.1.170.0030.00618.69
8.1.160.0040.00422.09
8.1.150.0040.00418.82
8.1.140.0000.00717.43
8.1.130.0000.00717.89
8.1.120.0040.00417.55
8.1.110.0000.00817.43
8.1.100.0040.00417.41
8.1.90.0040.00417.52
8.1.80.0040.00417.54
8.1.70.0000.00717.52
8.1.60.0080.00017.48
8.1.50.0030.00517.49
8.1.40.0050.00317.53
8.1.30.0030.00617.64
8.1.20.0070.00317.63
8.1.10.0040.00417.52
8.1.00.0040.00417.52
8.0.300.0050.00218.77
8.0.290.0070.00017.05
8.0.280.0000.00718.44
8.0.270.0000.00717.32
8.0.260.0040.00416.83
8.0.250.0070.00016.99
8.0.240.0040.00417.07
8.0.230.0030.00517.07
8.0.220.0030.00317.10
8.0.210.0030.00517.06
8.0.200.0060.00017.02
8.0.190.0000.00817.02
8.0.180.0040.00416.88
8.0.170.0080.00016.90
8.0.160.0000.00716.86
8.0.150.0080.00016.82
8.0.140.0040.00416.91
8.0.130.0030.00313.39
8.0.120.0000.00716.90
8.0.110.0000.00716.85
8.0.100.0000.00716.95
8.0.90.0040.00417.03
8.0.80.0040.01916.93
8.0.70.0000.00816.93
8.0.60.0040.00416.93
8.0.50.0040.00416.98
8.0.30.0140.00517.03
8.0.20.0080.01017.40
8.0.10.0040.00417.12
8.0.00.0100.00816.92
7.4.330.0020.00215.07
7.4.320.0000.00616.70
7.4.300.0060.00016.62
7.4.290.0000.00816.50
7.4.280.0040.00416.39
7.4.270.0030.00316.53
7.4.260.0030.00316.42
7.4.250.0000.00716.58
7.4.240.0030.00516.63
7.4.230.0050.00216.73
7.4.220.0170.00016.57
7.4.210.0010.01316.63
7.4.200.0000.00716.56
7.4.190.0040.00416.50
7.4.160.0100.00616.42
7.4.150.0070.01717.40
7.4.140.0130.00717.86
7.4.130.0110.00816.54
7.4.120.0110.00616.66
7.4.110.0070.01016.68
7.4.100.0070.01016.61
7.4.90.0090.00916.61
7.4.80.0120.00919.39
7.4.70.0150.00816.39
7.4.60.0070.01416.58
7.4.50.0000.00916.45
7.4.40.0030.01322.77
7.4.30.0110.00516.48
7.4.00.0050.01015.08
7.3.330.0030.00313.20
7.3.320.0060.00013.15
7.3.310.0000.00716.38
7.3.300.0000.00616.28
7.3.290.0130.00616.34
7.3.280.0070.01016.30
7.3.270.0080.00817.40
7.3.260.0070.01016.18
7.3.250.0060.01316.54
7.3.240.0070.01016.39
7.3.230.0130.00316.48
7.3.210.0090.00816.46
7.3.200.0170.00619.39
7.3.190.0030.01816.46
7.3.180.0070.01016.51
7.3.170.0040.01516.39
7.3.160.0030.01216.39
7.3.120.0050.01214.93
7.3.110.0060.00614.98
7.3.100.0060.00914.39
7.3.90.0040.01215.02
7.3.80.0100.00714.65
7.3.70.0060.00614.67
7.3.60.0060.00614.76
7.3.50.0110.00315.00
7.3.40.0030.00614.87
7.3.30.0090.00614.86
7.3.20.0090.00616.75
7.3.10.0050.00716.36
7.3.00.0040.01116.61
7.2.330.0090.00916.59
7.2.320.0180.00016.38
7.2.310.0140.00316.73
7.2.300.0130.00616.58
7.2.290.0030.01516.33
7.2.250.0030.01715.16
7.2.240.0100.01015.09
7.2.230.0100.01015.23
7.2.220.0040.00815.11
7.2.210.0110.00714.75
7.2.200.0080.00414.91
7.2.190.0090.00414.90
7.2.180.0030.00914.99
7.2.170.0060.00615.09
7.2.130.0130.00016.75
7.2.120.0060.01216.50
7.2.110.0160.00816.55
7.2.100.0140.00816.63
7.2.90.0070.00716.34
7.2.80.0070.01017.02
7.2.70.0230.00316.80
7.2.60.0100.00716.80
7.2.50.0000.01516.82
7.2.40.0100.01016.84
7.2.30.0100.01017.03
7.2.20.0070.00716.68
7.2.10.0090.00916.74
7.2.00.0070.01118.08
7.1.330.0040.01115.76
7.1.320.0030.01015.69
7.1.310.0060.00915.74
7.1.300.0060.00915.74
7.1.290.0100.00715.80
7.1.280.0000.01315.52
7.1.270.0030.01015.75
7.1.260.0060.01015.62
7.1.250.0150.00415.38
7.1.200.0060.00615.61
7.1.100.0040.00717.42
7.1.70.0030.00517.11
7.1.60.0090.01519.82
7.1.50.0140.01017.02
7.1.00.0070.07322.48
7.0.200.0090.00416.75
7.0.140.0070.07022.16
7.0.90.0330.07019.99
7.0.80.0100.04320.04
7.0.70.0470.04719.90
7.0.60.0170.07019.91
7.0.50.0100.07720.18
7.0.40.0130.04020.08
7.0.30.0030.05720.03
7.0.20.0130.05720.11
7.0.10.0100.08320.14
7.0.00.0200.06020.07
5.6.280.0030.07320.93
5.6.240.0100.04720.61
5.6.230.0070.04320.50
5.6.220.0100.06320.68
5.6.210.0100.05020.67
5.6.200.0030.07321.06
5.6.190.0130.07721.04
5.6.180.0030.04321.17
5.6.170.0070.04320.96
5.6.160.0200.04320.96
5.6.150.0100.04020.96
5.6.140.0170.06021.04
5.6.130.0100.07721.09
5.6.120.0030.08721.01
5.6.110.0100.05020.93
5.6.100.0130.03021.05
5.6.90.0130.08021.00
5.6.80.0070.03720.43
5.6.70.0100.07320.47
5.6.60.0100.07320.48
5.6.50.0000.06020.55
5.6.40.0200.06020.50
5.6.30.0100.07020.32
5.6.20.0070.07720.53
5.6.10.0000.08720.46
5.6.00.0100.06020.52
5.5.380.0000.06020.46
5.5.370.0030.05720.39
5.5.360.0130.06720.51
5.5.350.0000.06320.34
5.5.340.0130.08020.88
5.5.330.0170.07320.93
5.5.320.0100.05320.93
5.5.310.0130.07320.90
5.5.300.0100.07720.89
5.5.290.0030.08720.87
5.5.280.0070.03320.89
5.5.270.0000.07320.93
5.5.260.0100.03320.80
5.5.250.0200.07320.62
5.5.240.0030.05720.27
5.5.230.0070.08020.31
5.5.220.0070.06320.28
5.5.210.0100.07320.27
5.5.200.0130.07319.97
5.5.190.0070.08020.16
5.5.180.0000.08320.23
5.5.160.0100.08320.24
5.5.150.0070.05320.27
5.5.140.0070.05320.11
5.5.130.0130.05720.23
5.5.120.0030.07720.24
5.5.110.0000.08720.23
5.5.100.0100.07720.14
5.5.90.0100.07720.08
5.5.80.0170.07020.10
5.5.70.0070.08020.12
5.5.60.0170.06720.07
5.5.50.0100.07319.96
5.5.40.0000.07320.00
5.5.30.0100.07720.10
5.5.20.0000.08020.14
5.5.10.0070.08320.06
5.5.00.0170.07020.09
5.4.450.0030.07319.11
5.4.440.0100.05019.29
5.4.430.0070.03319.37
5.4.420.0000.06719.55
5.4.410.0130.06719.10
5.4.400.0070.04719.00
5.4.390.0170.05719.06
5.4.380.0070.05319.16
5.4.370.0070.07719.13
5.4.360.0070.07019.12
5.4.350.0130.07019.03
5.4.340.0070.08019.10
5.4.320.0130.07318.98
5.4.310.0070.07719.07
5.4.300.0170.06719.09
5.4.290.0070.08018.80
5.4.280.0070.08019.02
5.4.270.0030.07318.96
5.4.260.0030.04719.11
5.4.250.0000.07318.95
5.4.240.0170.06319.01
5.4.230.0000.08719.02
5.4.220.0100.08019.03
5.4.210.0100.08019.05
5.4.200.0100.07319.05
5.4.190.0030.05719.04
5.4.180.0070.06319.12
5.4.170.0030.08318.94
5.4.160.0130.07319.04
5.4.150.0100.04718.96
5.4.140.0070.07016.02
5.4.130.0000.05016.21
5.4.120.0100.06016.33
5.4.110.0070.05316.32
5.4.100.0100.07016.38
5.4.90.0030.06016.21
5.4.80.0170.06716.22
5.4.70.0070.05716.24
5.4.60.0000.04716.36
5.4.50.0130.02716.30
5.4.40.0000.04016.28
5.4.30.0030.04016.23
5.4.20.0030.03716.31
5.4.10.0070.03316.38
5.4.00.0030.05015.46
5.3.290.0070.08014.51
5.3.280.0130.07314.61
5.3.270.0070.06714.58
5.3.260.0030.08714.43
5.3.250.0100.07014.57
5.3.240.0100.07014.47
5.3.230.0100.08314.61
5.3.220.0100.04314.54
5.3.210.0000.04314.59
5.3.200.0070.04014.56
5.3.190.0070.07314.57
5.3.180.0030.08014.54
5.3.170.0030.08014.55
5.3.160.0100.03314.44
5.3.150.0070.05314.39
5.3.140.0070.03314.56
5.3.130.0030.03714.47
5.3.120.0070.03314.55
5.3.110.0070.04314.41
5.3.100.0030.03714.04
5.3.90.0030.03713.89
5.3.80.0030.04014.01
5.3.70.0030.03714.02
5.3.60.0030.04014.00
5.3.50.0030.07013.95
5.3.40.0000.04013.93
5.3.30.0000.03313.89
5.3.20.0000.04313.67
5.3.10.0100.06313.65
5.3.00.0030.03713.51
5.2.170.0000.02710.99
5.2.160.0070.02711.11
5.2.150.0030.03010.99
5.2.140.0100.05011.13
5.2.130.0030.02711.11
5.2.120.0000.03311.06
5.2.110.0000.03311.13
5.2.100.0070.02711.09
5.2.90.0000.05010.95
5.2.80.0000.03010.96
5.2.70.0030.04011.02
5.2.60.0030.02710.91
5.2.50.0030.03010.98
5.2.40.0030.02711.07
5.2.30.0000.03011.04
5.2.20.0030.02710.80
5.2.10.0030.02710.86
5.2.00.0000.03010.67
5.1.60.0030.02310.01
5.1.50.0000.0279.90
5.1.40.0000.0279.81
5.1.30.0030.02710.29
5.1.20.0030.02710.42
5.1.10.0070.02010.06
5.1.00.0000.03010.09
5.0.50.0000.0208.54
5.0.40.0000.0238.40
5.0.30.0000.0408.23
5.0.20.0000.0208.04
5.0.10.0000.0208.26
5.0.00.0070.0238.14
4.4.90.0000.0277.31
4.4.80.0000.0237.31
4.4.70.0070.0107.31
4.4.60.0000.0177.31
4.4.50.0030.0207.31
4.4.40.0030.0307.31
4.4.30.0030.0137.31
4.4.20.0000.0207.31
4.4.10.0000.0307.31
4.4.00.0000.0277.31
4.3.110.0000.0177.31
4.3.100.0030.0107.31
4.3.90.0000.0137.31
4.3.80.0070.0507.31
4.3.70.0000.0177.31
4.3.60.0000.0177.31
4.3.50.0030.0137.31
4.3.40.0000.0237.31
4.3.30.0000.0177.31
4.3.20.0030.0137.31
4.3.10.0000.0177.31
4.3.00.0030.0137.31

preferences:
27.77 ms | 401 KiB | 5 Q