3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = []; foreach(hash_algos() as $algo) { $start = microtime(true); $i = 1e6; 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.1.70.0032.49817.14
7.1.60.0002.50119.50
7.1.50.0032.49817.04
7.1.00.0072.49322.35
7.0.200.0132.48816.66
7.0.140.0032.49721.92
7.0.60.0032.49719.98
7.0.50.0072.49317.75
7.0.40.0102.49019.81
7.0.30.4202.07719.77
7.0.20.0372.46319.97
7.0.10.0372.46319.91
7.0.00.0102.49019.75
5.6.280.0032.49720.89
5.6.210.0032.49720.52
5.6.200.0072.49318.09
5.6.190.0032.47720.49
5.6.180.0272.47320.15
5.6.170.0332.46720.30
5.6.160.0132.48720.36
5.6.150.0002.38317.91
5.6.140.0072.49318.11
5.6.130.0072.49318.05
5.6.120.0132.48721.12
5.6.110.0072.49321.13
5.6.100.0102.49021.11
5.6.90.0102.49020.98
5.6.80.0032.49720.51
5.5.350.0102.49020.39
5.5.340.0032.49717.87
5.5.330.0032.49720.13
5.5.320.0072.49320.07
5.5.310.0232.47720.20
5.5.300.0102.49017.96
5.5.290.0072.49317.73
5.5.280.0072.49320.80
5.5.270.0072.49320.86
5.5.260.0032.49720.79
5.5.250.0072.49320.62
5.5.240.0002.50020.26
5.4.450.0102.48719.49
5.4.440.0032.49319.29
5.4.430.0202.47719.28
5.4.420.0132.48719.04
5.4.410.0172.48019.06
5.4.400.0230.68718.71
5.4.390.0270.47018.66
5.4.380.0430.44718.49
5.4.370.0970.43318.62
5.4.360.0130.85718.61
5.4.350.0200.96718.67
5.4.340.0401.01718.68
5.4.320.0171.02318.63
5.4.310.0270.99318.50
5.4.300.0200.95318.47
5.4.290.0230.97718.63
5.4.280.0270.98018.58
5.4.270.0230.95718.64
5.4.260.0230.89318.61
5.4.250.0300.96318.46
5.4.240.0271.03318.58
5.4.230.0300.94018.60
5.4.220.0131.00018.67
5.4.210.0171.06318.67
5.4.200.0300.98016.47
5.4.190.0130.96718.56
5.4.180.0230.97018.65
5.4.170.0230.90718.63
5.4.160.0200.94018.49
5.4.150.0130.96718.60
5.4.140.0131.09016.32
5.4.130.0300.97716.16
5.4.120.0330.99716.34
5.4.110.0301.01716.15
5.4.100.0270.98316.19
5.4.90.0231.00316.34
5.4.80.0271.04316.02
5.4.70.0200.99016.27
5.4.60.0231.17716.04
5.4.50.0101.28716.11
5.4.40.0271.26016.28
5.4.30.0401.22016.17
5.4.20.0171.30316.21
5.4.10.0202.47716.34

preferences:
32.27 ms | 400 KiB | 5 Q