3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "robert.shaw@reddotnetwork.com"; $secretKey = sha1("LetMeIn2014"); $verb = "GET"; $body = json_encode("{\"Request\":{\"satn\":\"181102\"},\"emailAddress\":\"robert.shaw@reddotnetwork.com\"}"); $contentmd5 = base64_encode(md5($body, true)); $contentType = "application/json"; $dateNow = gmdate("c"); $authCode = base64_encode(hash_hmac("sha1", $verb . "\n" . $contentmd5 . "\n" . $contentType . "\n" . $dateNow, $secretKey)); $header = "Content-Type: application/json" . "\n" . "Content-Length: " . strlen($body) . "\n" . "Content-MD5: " . $contentmd5 . "\n" . "Date: " . $dateNow . "\n" . "Authorization: RDN " . $username . ":" . $authCode; print($header);

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.0040.01118.18
8.3.50.0140.00221.97
8.3.40.0110.00418.71
8.3.30.0030.01018.94
8.3.20.0060.00320.29
8.3.10.0000.00822.04
8.3.00.0090.00322.50
8.2.180.0160.00316.63
8.2.170.0120.00322.96
8.2.160.0120.00320.74
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00317.50
8.2.110.0080.00022.19
8.2.100.0090.00317.72
8.2.90.0000.00718.92
8.2.80.0050.00317.97
8.2.70.0050.00317.50
8.2.60.0030.00518.03
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0040.00417.97
8.2.20.0000.00817.60
8.2.10.0040.00419.59
8.2.00.0030.00617.73
8.1.280.0070.00725.92
8.1.270.0070.00022.13
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00023.88
8.1.230.0090.00319.01
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00717.35
8.1.190.0000.00917.40
8.1.180.0030.00518.10
8.1.170.0050.00518.30
8.1.160.0030.00322.02
8.1.150.0070.00018.64
8.1.140.0000.00817.53
8.1.130.0030.00317.73
8.1.120.0000.00717.50
8.1.110.0040.00417.43
8.1.100.0000.00717.55
8.1.90.0000.00817.50
8.1.80.0040.00317.57
8.1.70.0070.00017.48
8.1.60.0050.00317.64
8.1.50.0040.00417.55
8.1.40.0060.00317.46
8.1.30.0040.00417.63
8.1.20.0040.00417.68
8.1.10.0080.00017.55
8.1.00.0050.00217.33
8.0.300.0000.00818.77
8.0.290.0040.00417.04
8.0.280.0000.00718.50
8.0.270.0050.00317.27
8.0.260.0080.00016.79
8.0.250.0070.00016.90
8.0.240.0040.00417.06
8.0.230.0040.00417.02
8.0.220.0070.00016.88
8.0.210.0000.00716.99
8.0.200.0000.00716.92
8.0.190.0000.00716.93
8.0.180.0000.00716.93
8.0.170.0030.00616.93
8.0.160.0040.00416.78
8.0.150.0040.00416.81
8.0.140.0040.00416.90
8.0.130.0050.00013.21
8.0.120.0040.00416.83
8.0.110.0000.00816.93
8.0.100.0030.00516.92
8.0.90.0040.00416.79
8.0.80.0000.01416.96
8.0.70.0040.00416.96
8.0.60.0070.00016.85
8.0.50.0040.00416.73
8.0.30.0110.00917.03
8.0.20.0050.01517.40
8.0.10.0000.00716.77
8.0.00.0090.01016.68
7.4.330.0030.00315.21
7.4.320.0030.00316.53
7.4.300.0050.00316.60
7.4.290.0040.00416.51
7.4.280.0070.00016.45
7.4.270.0000.00716.52
7.4.260.0050.00216.36
7.4.250.0040.00416.57
7.4.240.0060.00216.57
7.4.230.0030.00316.55
7.4.220.0070.01016.48
7.4.210.0070.00916.46
7.4.200.0070.00016.25
7.4.190.0000.00716.59
7.4.160.0160.00016.30
7.4.150.0060.01217.40
7.4.140.0080.01317.86
7.4.130.0100.00816.56
7.4.120.0130.00516.49
7.4.110.0100.01016.54
7.4.100.0170.00016.57
7.4.90.0030.01416.44
7.4.80.0100.01019.39
7.4.70.0060.01216.45
7.4.60.0000.01516.46
7.4.50.0060.00316.34
7.4.40.0030.01022.77
7.4.30.0130.00316.78
7.4.00.0120.00315.21
7.3.330.0060.00013.20
7.3.320.0000.00613.23
7.3.310.0030.00316.28
7.3.300.0000.00716.32
7.3.290.0070.01016.31
7.3.280.0030.01316.34
7.3.270.0060.01017.40
7.3.260.0150.00916.66
7.3.250.0110.01016.37
7.3.240.0070.01016.64
7.3.230.0160.00016.40
7.3.210.0080.00816.36
7.3.200.0030.01319.39
7.3.190.0100.00616.46
7.3.180.0160.00016.66
7.3.170.0060.01216.34
7.3.160.0120.00416.35
7.3.120.0070.01014.91
7.3.110.0040.01214.48
7.3.100.0070.00714.81
7.3.90.0100.00914.83
7.3.80.0040.01114.83
7.3.70.0030.00714.65
7.3.60.0090.00614.59
7.3.50.0030.00914.65
7.3.40.0110.00414.85
7.3.30.0080.00414.96
7.3.20.0110.00616.43
7.3.10.0080.00516.47
7.3.00.0070.00516.70
7.2.330.0130.00616.95
7.2.320.0090.01216.52
7.2.310.0000.01616.40
7.2.300.0090.00916.92
7.2.290.0030.01216.50
7.2.240.0030.00915.08
7.2.230.0040.00814.97
7.2.220.0140.00715.13
7.2.210.0100.00315.27
7.2.200.0070.00715.13
7.2.190.0120.00314.99
7.2.180.0060.00314.90
7.2.170.0030.00615.00
7.2.160.0090.00615.11
7.2.150.0100.00617.00
7.2.140.0000.01516.77
7.2.130.0050.00716.90
7.2.120.0080.00616.95
7.2.110.0040.00616.98
7.2.100.0110.00416.99
7.2.90.0060.00616.93
7.2.80.0060.00616.97
7.2.70.0070.00516.85
7.2.60.0050.00817.06
7.2.50.0060.00517.02
7.2.40.0060.00717.08
7.2.30.0060.01016.92
7.2.20.0080.00717.03
7.2.10.0060.00616.98
7.2.00.0080.00617.67
7.1.330.0040.01115.85
7.1.320.0070.00015.74
7.1.310.0040.01215.88
7.1.300.0030.00915.75
7.1.290.0030.01416.02
7.1.280.0070.00315.82
7.1.270.0130.00315.78
7.1.260.0040.00715.88
7.1.250.0070.00215.61
7.1.200.0070.00715.85
7.1.100.0040.00718.45
7.1.70.0110.00316.98
7.1.60.0210.00019.82
7.1.50.0120.00617.06
7.1.00.0070.07322.54
7.0.200.0040.00716.73
7.0.140.0070.07022.00
7.0.90.0370.04320.00
7.0.80.0530.06319.99
7.0.70.0600.06319.96
7.0.60.0670.08320.00
7.0.50.0400.07320.27
7.0.40.0170.07320.05
7.0.30.0130.07320.09
7.0.20.0100.07720.04
7.0.10.0100.06720.04
7.0.00.0000.08020.07
5.6.280.0170.06021.03
5.6.240.0070.04020.66
5.6.230.0130.03720.50
5.6.220.0100.07320.55
5.6.210.0100.06720.45
5.6.200.0100.04021.10
5.6.190.0130.07721.08
5.6.180.0130.06721.04
5.6.170.0170.07721.00
5.6.160.0100.03720.98
5.6.150.0070.08021.02
5.6.140.0130.07720.93
5.6.130.0200.03720.93
5.6.120.0070.07021.10
5.6.110.0100.04721.02
5.6.100.0070.08021.11
5.6.90.0130.07721.07
5.6.80.0070.05320.40
5.6.70.0100.07720.45
5.6.60.0100.07320.31
5.6.50.0030.04020.52
5.6.40.0170.07020.38
5.6.30.0170.05320.39
5.6.20.0070.08020.41
5.6.10.0170.07320.39
5.6.00.0030.05020.36
5.5.380.0070.04320.41
5.5.370.0030.04720.42
5.5.360.0100.08320.35
5.5.350.0100.08320.37
5.5.340.0070.06320.74
5.5.330.0030.04720.90
5.5.320.0070.08320.83
5.5.310.0070.04720.76
5.5.300.0070.07720.83
5.5.290.0200.03720.73
5.5.280.0200.07320.80
5.5.270.0200.07020.75
5.5.260.0070.05020.92
5.5.250.0100.07720.58
5.5.240.0100.04320.18
5.5.230.0030.07720.14
5.5.220.0130.05320.13
5.5.210.0000.05020.30
5.5.200.0070.04020.28
5.5.190.0100.07020.20
5.5.180.0100.04020.27
5.5.160.0100.03720.18
5.5.150.0000.06720.11
5.5.140.0100.06320.20
5.5.130.0070.07720.21
5.5.120.0130.04720.23
5.5.110.0130.06720.22
5.5.100.0070.07319.98
5.5.90.0100.08020.09
5.5.80.0030.08020.04
5.5.70.0200.06719.94
5.5.60.0000.04320.14
5.5.50.0030.04020.09
5.5.40.0070.08020.14
5.5.30.0070.08320.12
5.5.20.0230.06320.04
5.5.10.0070.07720.04
5.5.00.0100.07720.02
5.4.450.0170.07319.14
5.4.440.0030.05719.44
5.4.430.0000.07319.37
5.4.420.0170.06719.26
5.4.410.0070.05718.98
5.4.400.0130.06018.97
5.4.390.0070.07719.11
5.4.380.0000.07718.96
5.4.370.0030.04318.81
5.4.360.0030.04318.78
5.4.350.0170.04318.78
5.4.340.0130.07319.05
5.4.320.0030.08319.03
5.4.310.0130.06718.79
5.4.300.0070.04319.11
5.4.290.0030.05719.02
5.4.280.0070.05319.03
5.4.270.0030.08319.10
5.4.260.0100.04019.12
5.4.250.0070.07319.07
5.4.240.0100.07318.78
5.4.230.0070.04719.19
5.4.220.0030.06319.02
5.4.210.0070.05318.89
5.4.200.0030.08019.09
5.4.190.0130.06718.97
5.4.180.0100.07018.99
5.4.170.0100.03719.02
5.4.160.0000.07719.05
5.4.150.0000.07319.12
5.4.140.0070.07316.32
5.4.130.0130.06316.30
5.4.120.0170.06716.25
5.4.110.0030.07716.32
5.4.100.0100.04316.34
5.4.90.0070.06716.38
5.4.80.0070.03716.20
5.4.70.0030.07716.34
5.4.60.0100.06716.29
5.4.50.0000.05016.37
5.4.40.0030.04316.25
5.4.30.0170.06316.27
5.4.20.0130.06316.32
5.4.10.0030.08016.28
5.4.00.0070.07015.72
5.3.290.0070.05014.57
5.3.280.0100.04014.43
5.3.270.0030.05014.44
5.3.260.0070.07314.61
5.3.250.0130.05714.58
5.3.240.0030.04314.61
5.3.230.0100.04014.59
5.3.220.0130.06314.52
5.3.210.0070.04314.58
5.3.200.0070.07314.43
5.3.190.0030.05014.52
5.3.180.0130.06314.42
5.3.170.0030.05314.42
5.3.160.0000.06314.53
5.3.150.0070.07314.50
5.3.140.0100.06014.54
5.3.130.0100.07014.54
5.3.120.0100.07014.41
5.3.110.0030.08014.41
5.3.100.0100.07014.02
5.3.90.0030.05014.00
5.3.80.0030.04013.98
5.3.70.0070.08014.02
5.3.60.0070.05013.99
5.3.50.0070.07013.94
5.3.40.0130.06713.92
5.3.30.0130.06013.77
5.3.20.0070.07313.67
5.3.10.0070.05313.56
5.3.00.0070.07013.63
5.2.170.0030.06311.10
5.2.160.0170.04711.00
5.2.150.0030.06310.96
5.2.140.0000.06711.19
5.2.130.0070.03711.06
5.2.120.0070.06011.13
5.2.110.0000.04010.96
5.2.100.0130.05311.08
5.2.90.0070.05711.02
5.2.80.0130.05011.09
5.2.70.0070.06011.08
5.2.60.0100.05710.87
5.2.50.0030.06010.83
5.2.40.0100.05711.05
5.2.30.0030.04710.92
5.2.20.0130.03710.82
5.2.10.0130.05310.91
5.2.00.0100.05310.79
5.1.60.0070.0539.87
5.1.50.0100.0339.98
5.1.40.0030.0479.85
5.1.30.0030.05310.25
5.1.20.0070.05710.42
5.1.10.0100.04010.10
5.1.00.0070.05010.05
5.0.50.0000.0508.59
5.0.40.0070.0438.45
5.0.30.0130.0538.26
5.0.20.0000.0478.26
5.0.10.0000.0378.26
5.0.00.0030.0608.27
4.4.90.0000.0307.48
4.4.80.0000.0377.48
4.4.70.0000.0277.48
4.4.60.0000.0407.48
4.4.50.0030.0277.48
4.4.40.0030.0537.48
4.4.30.0070.0307.48
4.4.20.0000.0337.48
4.4.10.0100.0237.48
4.4.00.0000.0377.48
4.3.110.0000.0407.48
4.3.100.0030.0307.48
4.3.90.0000.0277.48
4.3.80.0070.0437.48
4.3.70.0100.0277.48
4.3.60.0000.0377.48
4.3.50.0000.0337.48
4.3.40.0000.0507.48
4.3.30.0030.0337.48
4.3.20.0030.0207.48
4.3.10.0030.0337.48
4.3.00.0030.0337.48

preferences:
38.11 ms | 401 KiB | 5 Q