3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = "algjhsdiouahwergoiuawhgiouaehnrgzdfgb23523"; $hash_function = "sha256"; $i = 0; $found = []; while (count($found) < 2) { $pw = base64_encode(str_repeat($i, 5)); $hash = hash_hmac($hash_function, $pw, $key); if ($hash[0] === "\0") { $found[] = $pw; } $i++; } var_dump($i, $found);

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.0071.99816.50
8.3.50.0101.99422.06
8.3.40.0071.99718.79
8.3.30.0002.00319.09
8.3.20.0071.99620.33
8.3.10.0002.00321.95
8.3.00.0032.00019.25
8.2.180.0101.99216.50
8.2.170.0101.99322.96
8.2.160.0101.99322.18
8.2.150.0032.00124.18
8.2.140.0071.99724.66
8.2.130.0032.00026.16
8.2.120.0032.00019.67
8.2.110.0071.99422.07
8.2.100.0071.99717.63
8.2.90.0002.00218.98
8.2.80.0002.00317.97
8.2.70.0071.99317.38
8.2.60.0002.00717.80
8.2.50.0071.99618.07
8.2.40.0031.99918.22
8.2.30.0002.00218.08
8.2.20.0032.00417.83
8.2.10.0071.99818.12
8.2.00.0071.99317.88
8.1.280.0131.99125.92
8.1.270.0071.99624.66
8.1.260.0002.00326.35
8.1.250.0032.00028.09
8.1.240.0071.99322.10
8.1.230.0071.99619.26
8.1.220.0002.00317.74
8.1.210.0071.99518.77
8.1.200.0131.99017.23
8.1.190.0032.00117.23
8.1.180.0001.99918.10
8.1.170.0071.99820.42
8.1.160.0002.00222.12
8.1.150.0101.99118.89
8.1.140.0001.98417.52
8.1.130.0002.00717.84
8.1.120.0032.00017.53
8.1.110.0002.00217.45
8.1.100.0002.00317.51
8.1.90.0031.99817.54
8.1.80.0031.99817.51
8.1.70.0071.99517.42
8.1.60.0031.99917.58
8.1.50.0031.99917.61
8.1.40.0002.00417.59
8.1.30.0071.99517.63
8.1.20.0002.00517.55
8.1.10.0002.00417.58
8.1.00.0031.99817.48
8.0.300.0032.00318.77
8.0.290.0071.99516.58
8.0.280.0002.00418.32
8.0.270.0002.00117.14
8.0.260.0031.99817.19
8.0.250.0031.99916.85
8.0.240.0032.00016.78
8.0.230.0032.00016.81
8.0.220.0071.99516.75
8.0.210.0032.00016.70
8.0.200.0002.00116.73
8.0.190.0031.99916.77
8.0.180.0031.99916.82
8.0.170.0032.00116.77
8.0.160.0002.00316.76
8.0.150.0032.00016.77
8.0.140.0002.00216.69
8.0.130.0731.92413.32
8.0.120.0031.99816.77
8.0.110.0131.98816.79
8.0.100.0002.00416.61
8.0.90.0071.99616.89
8.0.80.0061.99516.80
8.0.70.0032.00016.80
8.0.60.0031.99916.66
8.0.50.0002.00716.71
8.0.30.0191.96017.18
8.0.20.0191.95417.40
8.0.10.0031.99916.89
8.0.00.0121.99216.79
7.4.330.0031.99815.15
7.4.320.0002.00316.50
7.4.300.0101.98216.25
7.4.290.0002.00416.52
7.4.280.0071.99616.39
7.4.270.0031.99816.52
7.4.260.0031.99816.46
7.4.250.0002.00216.37
7.4.240.0022.00016.46
7.4.230.0032.00116.52
7.4.220.0091.99716.36
7.4.210.0071.99116.53
7.4.200.0101.99416.31
7.4.160.0271.96816.39
7.4.150.0201.98117.40
7.4.140.0151.98317.86
7.4.130.0251.95916.38
7.4.120.0191.98016.49
7.4.110.0162.43316.43
7.4.100.0192.45216.37
7.4.90.0102.44216.52
7.4.80.0102.45619.39
7.4.70.0192.45216.35
7.4.60.0132.45016.37
7.4.50.0032.49516.58
7.4.40.0232.43916.57
7.4.30.0122.41716.30
7.4.00.0072.49014.83
7.3.330.0301.96213.17
7.3.320.0171.98513.25
7.3.310.0002.00216.18
7.3.300.0071.99416.32
7.3.290.0002.00415.96
7.3.280.0271.97316.21
7.3.270.0351.93417.40
7.3.260.0161.98316.60
7.3.250.0101.99116.24
7.3.240.0101.99716.32
7.3.230.0232.42316.39
7.3.210.0132.44216.42
7.3.200.0192.43219.39
7.3.190.0132.43916.31
7.3.180.0062.46416.23
7.3.170.0232.40716.27
7.3.160.0162.44016.18
7.2.330.0292.18816.61
7.2.320.0162.42116.24
7.2.310.0162.43116.65
7.2.300.0062.44216.71
7.2.290.0072.46016.29
7.2.00.0032.49819.35
7.1.100.0072.49418.16
7.1.70.3932.10717.14
7.1.60.0132.48819.46
7.1.50.0032.49817.22
7.1.00.0072.49322.42
7.0.200.0072.49416.82
7.0.140.0002.50021.97
7.0.70.4232.06019.95
7.0.60.0102.49019.95
7.0.50.0032.49717.71
7.0.40.0202.46719.64
7.0.30.0272.45319.77
7.0.20.0372.45719.85
7.0.10.0072.49319.93
7.0.00.0072.48019.72
5.6.280.0072.49321.11
5.6.210.0032.49720.68
5.6.200.0072.49318.07
5.6.190.0102.47720.49
5.6.180.0372.45320.41
5.6.170.0372.44720.29
5.6.160.0072.48020.31
5.6.150.0072.47318.18
5.6.140.0032.49718.12
5.6.130.0132.47318.02
5.6.120.0032.45020.89
5.6.110.0002.50020.97
5.6.100.0102.49021.00
5.6.90.0102.49020.98
5.6.80.0072.49320.34
5.6.70.0232.47720.39
5.5.350.1072.39320.41
5.5.340.0132.48717.97
5.5.330.0032.49020.26
5.5.320.0032.49720.13
5.5.310.0172.47720.13
5.5.300.0102.48017.91
5.5.290.0102.47717.84
5.5.280.0072.49320.89
5.5.270.0032.49720.95
5.5.260.0072.49320.86
5.5.250.0132.48720.61
5.5.240.0102.49020.26
5.4.450.0132.48319.39
5.4.440.0332.46719.18
5.4.430.2732.22319.06
5.4.420.0232.47719.31
5.4.410.0172.48019.19
5.4.400.0402.43018.76
5.4.390.0402.44318.58
5.4.380.0332.45718.70
5.4.370.0202.45718.46
5.4.360.0272.39318.70
5.4.350.0132.47318.68
5.4.340.0232.45018.51
5.4.320.0272.47318.57
5.4.310.0232.44318.51
5.4.300.0332.44318.70
5.4.290.0272.29318.49
5.4.280.0102.46718.70
5.4.270.0232.47718.68
5.4.260.0172.42318.65
5.4.250.0232.47318.67
5.4.240.0172.46718.70
5.4.230.0232.47718.48
5.4.220.0132.45318.48
5.4.210.0232.45718.45
5.4.200.0372.43316.38
5.4.190.0202.44718.47
5.4.180.0232.47718.64
5.4.170.0202.45318.48
5.4.160.0202.47718.55
5.4.150.0232.30018.65
5.4.140.0372.44016.25
5.4.130.0232.44016.06
5.4.120.0132.46016.34
5.4.110.0431.44716.30
5.4.100.0101.55716.19
5.4.90.0232.46016.13
5.4.80.0972.38016.23
5.4.70.1072.35716.00
5.4.60.0902.40316.22
5.4.50.0672.36716.16
5.4.40.0932.40016.18
5.4.30.0902.38016.16
5.4.20.1002.38716.30
5.4.10.1032.32016.15

preferences:
45.15 ms | 401 KiB | 5 Q