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(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.0100.01018.02
8.3.50.0120.00721.99
8.3.40.0070.00718.67
8.3.30.0110.00419.05
8.3.20.0080.00020.30
8.3.10.0040.00422.00
8.3.00.0120.00022.44
8.2.180.0090.00916.63
8.2.170.0100.01022.96
8.2.160.0150.00020.82
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00817.75
8.2.110.0030.00722.11
8.2.100.0040.00817.72
8.2.90.0000.00819.05
8.2.80.0000.01017.97
8.2.70.0030.00617.75
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0080.00018.28
8.2.30.0040.00418.02
8.2.20.0020.00517.64
8.2.10.0000.00717.86
8.2.00.0080.00417.65
8.1.280.0070.01025.92
8.1.270.0070.00023.91
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00320.39
8.1.230.0070.00417.48
8.1.220.0030.00617.79
8.1.210.0060.00318.77
8.1.200.0000.00817.25
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00518.63
8.1.160.0040.00421.93
8.1.150.0040.00418.61
8.1.140.0030.00617.62
8.1.130.0070.00017.75
8.1.120.0000.00717.57
8.1.110.0040.00417.45
8.1.100.0000.00717.60
8.1.90.0000.00717.49
8.1.80.0040.00317.53
8.1.70.0080.00017.53
8.1.60.0060.00317.45
8.1.50.0080.00017.50
8.1.40.0080.00017.52
8.1.30.0000.00917.63
8.1.20.0080.00017.52
8.1.10.0050.00317.50
8.1.00.0040.00417.41
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0030.00418.37
8.0.270.0030.00317.32
8.0.260.0060.00316.84
8.0.250.0070.00016.93
8.0.240.0000.00717.00
8.0.230.0070.00017.03
8.0.220.0070.00016.95
8.0.210.0030.00316.97
8.0.200.0030.00316.94
8.0.190.0070.00016.95
8.0.180.0040.00416.89
8.0.170.0040.00416.86
8.0.160.0000.00816.89
8.0.150.0050.00316.86
8.0.140.0000.00716.89
8.0.130.0050.00013.32
8.0.120.0030.00516.84
8.0.110.0050.00216.91
8.0.100.0000.00716.79
8.0.90.0040.00416.80
8.0.80.0030.01316.96
8.0.70.0040.00416.73
8.0.60.0000.00716.77
8.0.50.0040.00416.93
8.0.30.0120.00617.06
8.0.20.0110.00817.40
8.0.10.0030.00516.83
8.0.00.0110.00716.70
7.4.330.0050.00015.00
7.4.320.0030.00316.47
7.4.300.0030.00316.60
7.4.290.0000.00716.50
7.4.280.0070.00016.50
7.4.270.0040.00416.60
7.4.260.0000.00716.64
7.4.250.0070.00016.54
7.4.240.0030.00516.54
7.4.230.0020.00516.57
7.4.220.0070.01116.50
7.4.210.0030.01216.56
7.4.200.0030.00516.43
7.4.190.0000.00816.46
7.4.160.0130.00316.40
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0120.00616.58
7.4.120.0100.00816.49
7.4.110.0060.01616.50
7.4.100.0070.01016.65
7.4.90.0100.00616.49
7.4.80.0030.01919.39
7.4.70.0030.01416.43
7.4.60.0130.00416.54
7.4.50.0000.00916.50
7.4.40.0030.01422.77
7.4.30.0100.00716.45
7.4.00.0060.01215.02
7.3.330.0000.00513.17
7.3.320.0020.00213.03
7.3.310.0000.00916.41
7.3.300.0030.00316.24
7.3.290.0070.00716.43
7.3.280.0070.01016.33
7.3.270.0130.00717.40
7.3.260.0090.00916.21
7.3.250.0190.00416.41
7.3.240.0100.01016.29
7.3.230.0060.01316.39
7.3.210.0070.01116.37
7.3.200.0100.00719.39
7.3.190.0140.00316.38
7.3.180.0120.00416.47
7.3.170.0090.00716.59
7.3.160.0170.00316.27
7.3.120.0030.01214.62
7.2.330.0070.01116.60
7.2.320.0100.01316.86
7.2.310.0070.01016.84
7.2.300.0090.00916.56
7.2.290.0060.01216.57
7.2.60.0030.00616.95
7.1.200.0060.00915.83
7.1.100.0000.01818.11
7.1.70.0200.00017.09
7.1.60.0170.00719.82
7.1.50.0070.01717.16
7.1.00.0070.07322.28
7.0.200.0060.00616.43
7.0.140.0000.07721.98
7.0.90.0100.07720.12
7.0.80.0130.04019.92
7.0.70.0100.08020.11
7.0.60.0070.05319.84
7.0.50.0130.07020.41
7.0.40.0130.07020.08
7.0.30.0030.05019.95
7.0.20.0130.07320.13
7.0.10.0070.04720.17
7.0.00.0100.05020.12
5.6.280.0030.07020.82
5.6.230.0070.08020.45
5.6.220.0070.05720.66
5.6.210.0130.06020.54
5.6.200.0070.07721.16
5.6.190.0030.05321.07
5.6.180.0130.03721.07
5.6.170.0030.07721.00
5.6.160.0100.08020.93
5.6.150.0130.07021.02
5.6.140.0030.08021.13
5.6.130.0070.05021.10
5.6.120.0200.06721.06
5.6.110.0100.04721.10
5.6.100.0030.05320.92
5.6.90.0130.08020.91
5.6.80.0070.07320.31
5.6.70.0030.04320.44
5.6.60.0100.06720.44
5.6.50.0130.07320.51
5.6.40.0070.03720.43
5.6.30.0130.03020.39
5.6.20.0130.03320.48
5.6.10.0070.03720.43
5.6.00.0030.04020.34
5.5.370.0070.06320.34
5.5.360.0030.07320.38
5.5.350.0070.05020.38
5.5.340.0030.05720.64
5.5.330.0130.07020.76
5.5.320.0030.08020.76
5.5.310.0130.07720.93
5.5.300.0070.07720.73
5.5.290.0130.07320.78
5.5.280.0030.06320.79
5.5.270.0100.08020.77
5.5.260.0100.08020.81
5.5.250.0030.08020.74
5.5.240.0070.06320.27
5.5.230.0000.08720.11
5.5.220.0030.08020.28
5.5.210.0130.05720.24
5.5.200.0070.04320.27
5.5.190.0070.03320.11
5.5.180.0100.07720.11
5.5.160.0030.04020.11
5.5.150.0070.04720.11
5.5.140.0100.05320.14
5.5.130.0100.03320.12
5.5.120.0070.08020.16
5.5.110.0030.08320.21
5.5.100.0170.06720.08
5.5.90.0030.07720.07
5.5.80.0030.04020.05
5.5.70.0000.05320.14
5.5.60.0100.07019.96
5.5.50.0100.04020.06
5.5.40.0100.06720.05
5.5.30.0070.07020.07
5.5.20.0100.07320.12
5.5.10.0070.07720.07
5.5.00.0070.07020.02
5.4.450.0070.04719.30
5.4.440.0030.06319.55
5.4.430.0100.05719.30
5.4.420.0070.07719.41
5.4.410.0130.03319.22
5.4.400.0100.05018.82
5.4.390.0130.07319.02
5.4.380.0070.07318.90
5.4.370.0030.04019.07
5.4.360.0100.07018.95
5.4.350.0070.03018.98
5.4.340.0070.07019.23
5.4.320.0030.08018.79
5.4.310.0070.03319.09
5.4.300.0070.07719.05
5.4.290.0000.04018.75
5.4.280.0070.05319.13
5.4.270.0070.04319.14
5.4.260.0070.04718.94
5.4.250.0070.04719.11
5.4.240.0070.04319.03
5.4.230.0100.07319.05
5.4.220.0070.07719.09
5.4.210.0070.05719.02
5.4.200.0100.06319.02
5.4.190.0130.07018.82
5.4.180.0070.04719.22
5.4.170.0030.07318.91
5.4.160.0070.05019.01
5.4.150.0070.08018.88
5.4.140.0070.07016.02
5.4.130.0170.06016.31
5.4.120.0070.04016.23
5.4.110.0130.06316.42
5.4.100.0100.07016.23
5.4.90.0070.04016.43
5.4.80.0130.06316.43
5.4.70.0030.05716.41
5.4.60.0100.04016.31
5.4.50.0070.07316.27
5.4.40.0000.04716.25
5.4.30.0000.08316.39
5.4.20.0000.04016.18
5.4.10.0030.07716.24
5.4.00.0000.05015.67
5.3.290.0030.07714.50
5.3.280.0000.06014.51
5.3.270.0000.05014.63
5.3.260.0070.07314.52
5.3.250.0130.07014.61
5.3.240.0000.08314.47
5.3.230.0030.07714.59
5.3.220.0070.07014.56
5.3.210.0100.06714.43
5.3.200.0070.05014.43
5.3.190.0030.05014.55
5.3.180.0070.07014.42
5.3.170.0070.07314.56
5.3.160.0030.06314.51
5.3.150.0100.07014.42
5.3.140.0030.07714.41
5.3.130.0030.07714.50
5.3.120.0070.04014.37
5.3.110.0100.04314.56
5.3.100.0130.07013.98
5.3.90.0030.06714.00
5.3.80.0030.07313.87
5.3.70.0030.06014.01
5.3.60.0070.04313.96
5.3.50.0030.07313.89
5.3.40.0030.04313.90
5.3.30.0100.03013.87
5.3.20.0070.03313.67
5.3.10.0030.05013.56
5.3.00.0030.06713.63
5.2.170.0030.04010.95
5.2.160.0100.03311.00
5.2.150.0070.02711.18
5.2.140.0100.03310.97
5.2.130.0000.03011.08
5.2.120.0030.02711.17
5.2.110.0130.05711.04
5.2.100.0030.05711.12
5.2.90.0030.05711.09
5.2.80.0070.03711.11
5.2.70.0030.04310.95
5.2.60.0000.07010.93
5.2.50.0000.06011.07
5.2.40.0030.06310.92
5.2.30.0200.04311.01
5.2.20.0100.06010.98
5.2.10.0070.04710.99
5.2.00.0000.06310.73
5.1.60.0100.04010.03
5.1.50.0070.0509.99
5.1.40.0070.04710.01
5.1.30.0070.05710.26
5.1.20.0130.05010.26
5.1.10.0030.04010.12
5.1.00.0030.03310.07
5.0.50.0030.0478.54
5.0.40.0030.0438.46
5.0.30.0070.0638.23
5.0.20.0000.0278.21
5.0.10.0100.0238.23
5.0.00.0070.0278.16
4.4.90.0030.0336.14
4.4.80.0000.0336.14
4.4.70.0000.0236.14
4.4.60.0030.0236.14
4.4.50.0000.0406.14
4.4.40.0000.0536.14
4.4.30.0000.0376.14
4.4.20.0030.0336.14
4.4.10.0000.0336.14
4.4.00.0030.0536.14
4.3.110.0000.0406.14
4.3.100.0000.0376.14
4.3.90.0000.0376.14
4.3.80.0030.0376.14
4.3.70.0000.0376.14
4.3.60.0030.0136.14
4.3.50.0030.0336.14
4.3.40.0030.0376.14
4.3.30.0070.0206.14
4.3.20.0000.0176.14
4.3.10.0000.0276.14
4.3.00.0030.0306.14

preferences:
38.83 ms | 401 KiB | 5 Q