3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['host'] = 'www.seznam.cz'; $_POST['hmac'] = 'ea490cb67d21d43592c2b20a5339da2b373c2de39e4a5bcfab9872d448955376'; $_POST['nonce'] = true; if ( empty($_POST['nonce']) || empty($_POST['hmac']) || empty($_POST['host']) ) { header('HTTP/1.0 400 Bad Request'); exit; } $secret = '6556464'; $secret = hash_hmac('sha256', $_POST['nonce'], $secret); $hmac = hash_hmac('sha256', $_POST['host'], $secret); var_dump($hmac); if ($hmac !== $_POST['hmac']) { header('HTTP/1.0 403 Forbidden'); exit; } var_dump('lol'); echo exec("host " . $_POST['host']);

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.0060.00918.81
8.3.50.0090.00618.32
8.3.40.0100.00618.67
8.3.30.0000.01518.82
8.3.20.0030.00519.24
8.3.10.0040.00421.78
8.3.00.0000.00819.79
8.2.180.0160.00316.59
8.2.170.0000.01422.96
8.2.160.0100.01019.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.83
8.2.120.0040.00426.35
8.2.110.0040.00719.33
8.2.100.0040.00718.03
8.2.90.0060.00318.16
8.2.80.0000.00818.16
8.2.70.0000.00817.68
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0040.00419.25
8.2.30.0050.00219.57
8.2.20.0040.00418.04
8.2.10.0040.00418.02
8.2.00.0000.00719.39
8.1.280.0070.01425.92
8.1.270.0000.00823.96
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0040.00422.68
8.1.230.0100.00322.63
8.1.220.0080.00017.79
8.1.210.0060.00318.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0030.00518.84
8.1.150.0030.00518.82
8.1.140.0000.00817.71
8.1.130.0030.00318.98
8.1.120.0000.00717.34
8.1.110.0070.00017.44
8.1.100.0000.00717.48
8.1.90.0000.00817.47
8.1.80.0000.00817.38
8.1.70.0030.00617.45
8.1.60.0030.00617.59
8.1.50.0000.00817.59
8.1.40.0000.00817.45
8.1.30.0040.00417.60
8.1.20.0040.00417.68
8.1.10.0030.00617.54
8.1.00.0000.00817.59
8.0.300.0000.00719.87
8.0.290.0020.00516.75
8.0.280.0050.00518.50
8.0.270.0070.00017.29
8.0.260.0040.00417.29
8.0.250.0030.00317.10
8.0.240.0040.00417.05
8.0.230.0000.00717.01
8.0.220.0030.00316.99
8.0.210.0000.00716.95
8.0.200.0030.00316.88
8.0.190.0070.00417.04
8.0.180.0040.00417.05
8.0.170.0000.00916.90
8.0.160.0070.00316.96
8.0.150.0030.00816.87
8.0.140.0030.00316.82
8.0.130.0060.00313.40
8.0.120.0000.00716.93
8.0.110.0030.00516.95
8.0.100.0030.00616.89
8.0.90.0020.00516.94
8.0.80.0140.00516.98
8.0.70.0000.00716.99
8.0.60.0040.00416.80
8.0.50.0040.00416.84
8.0.30.0060.01317.06
8.0.20.0130.00917.40
8.0.10.0000.00717.10
8.0.00.0090.01016.82
7.4.330.0000.00515.55
7.4.320.0040.00416.57
7.4.300.0030.00316.59
7.4.290.0000.00716.49
7.4.280.0030.00616.43
7.4.270.0050.00216.54
7.4.260.0030.00316.59
7.4.250.0000.00716.56
7.4.240.0000.00716.54
7.4.230.0030.00316.71
7.4.220.0070.00016.36
7.4.210.0030.01116.62
7.4.200.0000.00716.43
7.4.160.0100.00716.54
7.4.140.0110.00817.86
7.4.130.0130.00416.75
7.4.120.0110.00916.56
7.4.110.0070.01016.46
7.4.100.0070.01116.57
7.4.90.0100.00716.71
7.4.80.0120.00719.39
7.4.70.0100.00716.52
7.4.60.0090.00616.52
7.4.50.0120.00616.77
7.4.40.0090.00916.53
7.4.00.0070.00915.09
7.3.330.0030.00313.11
7.3.320.0060.00013.10
7.3.310.0040.00416.41
7.3.300.0060.00016.24
7.3.290.0030.00316.33
7.3.280.0060.01116.39
7.3.260.0080.01216.45
7.3.240.0080.01116.50
7.3.230.0050.01216.34
7.3.210.0030.01816.59
7.3.200.0060.01016.53
7.3.190.0080.01116.36
7.3.180.0090.00616.61
7.3.170.0080.00816.70
7.3.160.0080.00816.59
7.3.120.0010.01414.91
7.3.110.0060.00614.94
7.3.100.0100.00714.99
7.3.90.0040.01215.14
7.3.80.0070.00714.96
7.3.70.0050.00514.83
7.3.60.0060.00914.96
7.3.50.0100.00314.99
7.3.40.0110.00414.99
7.3.30.0070.00315.00
7.3.20.0040.00816.79
7.3.10.0070.00716.73
7.3.00.0060.00316.70
7.2.330.0090.00916.76
7.2.320.0100.00716.65
7.2.310.0050.01316.80
7.2.300.0130.00316.48
7.2.290.0070.01316.61
7.2.250.0040.01215.25
7.2.240.0040.01515.29
7.2.230.0030.01415.30
7.2.220.0000.01315.23
7.2.210.0000.01415.00
7.2.200.0030.01014.93
7.2.190.0030.01015.20
7.2.180.0070.00714.96
7.2.170.0060.01015.16
7.2.160.0060.00615.13
7.2.150.0060.00617.08
7.2.140.0030.01016.91
7.2.130.0030.00816.96
7.2.120.0080.00416.95
7.2.110.0110.00316.84
7.2.100.0070.00717.05
7.2.90.0070.00716.86
7.2.80.0040.01117.10
7.2.70.0030.00916.99
7.2.60.0030.01116.96
7.2.50.0030.00917.09
7.2.40.1180.00917.54
7.2.30.1240.01217.60
7.2.20.1490.00717.58
7.2.10.1150.01017.45
7.2.00.1660.01117.44
7.1.330.0090.00615.65
7.1.320.0070.00715.87
7.1.310.0000.01015.79
7.1.300.0030.01015.72
7.1.290.0040.00815.77
7.1.280.0000.01215.81
7.1.270.0080.00415.54
7.1.260.0060.00815.62
7.1.250.0000.01115.62
7.1.240.0060.00615.99
7.1.230.0080.00615.80
7.1.220.0030.00715.74
7.1.210.0030.00715.80
7.1.200.0050.00715.73
7.1.190.0070.01015.63
7.1.180.0070.00715.48
7.1.170.0090.00615.70
7.1.160.1090.01116.21
7.1.150.1190.00716.32
7.1.140.1310.00516.29
7.1.130.1360.00816.15
7.1.120.1190.00916.33
7.1.110.1020.00516.04
7.1.100.1180.00815.98
7.1.90.1460.00916.18
7.1.80.1480.00816.04
7.1.70.1630.00615.43
7.1.60.1450.00824.57
7.1.50.1970.01024.30
7.1.40.2130.00724.15
7.1.30.2070.00624.16
7.1.20.2110.01224.27
7.1.10.2070.00915.43
7.1.00.1360.00715.26
7.0.330.0040.01115.41
7.0.320.0030.00615.37
7.0.310.0040.00715.48
7.0.300.0000.01215.36
7.0.290.0060.00915.37
7.0.280.0000.00915.23
7.0.270.0040.00715.30
7.0.260.0100.00715.18
7.0.250.0080.00815.66
7.0.240.0040.00415.30
7.0.230.0070.00715.53
7.0.220.0060.00615.43
7.0.210.0060.00615.61
7.0.200.0140.00015.33
7.0.190.0030.01015.41
7.0.180.0040.01115.09
7.0.170.0060.00915.22
7.0.160.0030.01015.32
7.0.150.0030.00915.58
7.0.140.0040.00815.59
7.0.130.0080.00315.39
7.0.120.0080.00415.01
7.0.110.0000.01115.30
7.0.100.0000.01215.56
7.0.90.0030.01315.53
7.0.80.0040.00815.43
7.0.70.0070.00415.11
7.0.60.0110.00015.35
7.0.50.0070.00315.49
7.0.40.0030.01013.55
7.0.30.0030.00713.54
7.0.20.0060.01013.28
7.0.10.0000.01413.46
7.0.00.0050.00513.44
5.6.400.0000.00814.17
5.6.390.0080.00014.23
5.6.380.0040.01114.70
5.6.370.0070.00714.41
5.6.360.0030.00614.52
5.6.350.0030.01314.08
5.6.340.0080.00414.82
5.6.330.0120.00614.14
5.6.320.0030.01414.58
5.6.310.0030.01014.28
5.6.300.0030.00614.72
5.6.290.0040.00814.15
5.6.280.0120.00014.57
5.6.270.0040.00414.28
5.6.260.0040.01114.23
5.6.250.0060.00314.38
5.6.240.0030.01314.68
5.6.230.0070.00714.57
5.6.220.0070.00714.52
5.6.210.0100.00314.16
5.6.200.0040.00714.39
5.6.190.0030.01014.43
5.6.180.0090.00514.34
5.6.170.0040.01114.24
5.6.160.0110.00414.30
5.6.150.0040.00714.29
5.6.140.0030.01014.77
5.6.130.0090.00314.32
5.6.120.0000.01414.59
5.6.110.0090.00614.26
5.6.100.0070.00714.41
5.6.90.0030.01214.42
5.6.80.0090.00614.50
5.6.70.0030.00514.18
5.6.60.0070.00714.29
5.6.50.0000.00914.44
5.6.40.0120.00614.22
5.6.30.0160.00014.21
5.6.20.0070.01014.27
5.6.10.0070.00314.31
5.6.00.0000.01414.34

preferences:
76.04 ms | 400 KiB | 5 Q