3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; foreach(hash_algos() as $algo) { $start = microtime(true); $i = 1e5; while (--$i) { hash($algo, $i); } $result[$algo] = microtime(true) - $start; } asort($result); var_dump($result);

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)
7.2.00.0072.49419.44
7.1.100.0102.49117.70
7.1.70.2072.29417.17
7.1.60.0072.49519.50
7.1.50.0072.49517.16
7.1.00.0002.50022.32
7.0.200.0032.49716.65
7.0.140.0072.49322.21
7.0.60.0072.49319.87
7.0.50.0132.48717.84
7.0.40.0102.49019.75
7.0.30.0232.47719.88
7.0.20.0132.48719.91
7.0.10.0132.48719.91
7.0.00.0172.48319.90
5.6.280.0072.49321.13
5.6.210.0172.48320.55
5.6.200.3802.11718.06
5.6.190.0102.49020.23
5.6.180.0232.47720.49
5.6.170.0332.46720.37
5.6.160.0032.49720.10
5.6.150.0072.49318.03
5.6.140.0032.49718.18
5.6.130.0102.49017.89
5.6.120.0072.49321.02
5.6.110.0072.49321.02
5.6.100.0102.49021.01
5.6.90.0102.49021.10
5.6.80.0072.49320.54
5.5.350.0232.47720.34
5.5.340.0032.49717.84
5.5.330.0072.49320.12
5.5.320.0072.49319.90
5.5.310.0302.47020.05
5.5.300.0072.49317.84
5.5.290.0032.49717.83
5.5.280.0132.48720.78
5.5.270.0002.50020.73
5.5.260.0032.49720.87
5.5.250.0102.49020.80
5.5.240.0102.49020.26
5.4.450.0272.47319.34
5.4.440.0202.47719.32
5.4.430.0272.47019.47
5.4.420.0132.48319.33
5.4.410.0132.48319.37
5.4.400.0321.72018.52
5.4.390.0231.71818.59
5.4.380.0251.60818.57
5.4.370.0281.69818.62
5.4.360.0171.71018.43
5.4.350.0331.68518.63
5.4.340.0331.56818.54
5.4.320.0321.66518.63
5.4.310.0331.67518.68
5.4.300.1451.56718.59
5.4.290.0301.68518.69
5.4.280.0301.53018.52
5.4.270.0221.27018.56
5.4.260.0271.44318.58
5.4.250.0251.43318.54
5.4.240.0251.24818.57
5.4.230.0221.47718.66
5.4.220.0271.32718.56
5.4.210.0181.44218.65
5.4.200.0251.48716.38
5.4.190.0201.40218.60
5.4.180.0221.10218.64
5.4.170.0271.09018.52
5.4.160.0281.22518.56
5.4.150.0151.41318.65
5.4.140.0251.42216.13
5.4.130.0231.31816.26
5.4.120.0201.13316.09
5.4.110.0171.18716.32
5.4.100.0221.22016.24
5.4.90.0131.20516.10
5.4.80.0181.16316.14
5.4.70.0281.11316.11
5.4.60.0271.21716.07
5.4.50.0151.15716.08
5.4.40.0221.13316.18
5.4.30.0231.12516.20
5.4.20.0201.07016.13
5.4.10.0232.46016.12

preferences:
40.35 ms | 400 KiB | 5 Q