3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function testAlgos() { $algos = hash_algos(); $word="This will be crypted by all different algoritms"; $results = array(); foreach($algos as $algo) { $time=microtime(1); $data = hash($algo, $word, false); $results["".(microtime(1)-$time)][] = "$algo (hex)"; } foreach($algos as $algo) { $time=microtime(1); $data = hash($algo, $word, true); $results["".(microtime(1)-$time)][] = "$algo (raw)"; } ksort($results); foreach($results as $time => &$algos) { echo $time."\n"; sort($algos); foreach($algos as $algo) echo "\t".$algo."\n"; } } testAlgos();

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0040.01219.25
7.1.70.0030.00717.02
7.1.60.0110.01419.32
7.1.50.0060.01617.12
7.1.00.0030.07722.42
7.0.200.0000.00816.64
7.0.140.0070.07022.15
7.0.70.4700.04720.00
7.0.60.0000.07719.93
7.0.50.0030.04717.91
7.0.40.0200.07719.95
7.0.30.0500.06320.08
7.0.20.0330.07020.25
7.0.10.0300.07720.10
7.0.00.0070.04720.09
5.6.280.0030.07720.77
5.6.210.0030.04020.63
5.6.200.0070.06718.18
5.6.190.0000.10020.52
5.6.180.0100.08320.58
5.6.170.0500.07320.55
5.6.160.0030.09020.50
5.6.150.0100.07718.27
5.6.140.0070.05018.27
5.6.130.0130.07318.14
5.6.120.0070.08021.00
5.6.110.0070.04021.14
5.6.100.0030.06321.14
5.6.90.0070.07321.03
5.6.80.0100.08020.43
5.6.70.0070.08020.39
5.5.350.0000.07720.40
5.5.340.0070.06718.09
5.5.330.0100.04020.25
5.5.320.0070.06320.28
5.5.310.0270.08020.27
5.5.300.0100.06318.06
5.5.290.0100.08017.98
5.5.280.0030.04020.88
5.5.270.0030.04320.90
5.5.260.0170.05020.87
5.5.250.0070.08320.70
5.5.240.0100.05720.17
5.4.450.0300.03019.55
5.4.440.0230.04719.28
5.4.430.0230.05019.54
5.4.420.0630.00019.57
5.4.410.0700.00019.52
5.4.400.0600.00019.23
5.4.390.0630.00019.09
5.4.380.0730.00019.07
5.4.370.0830.00019.06
5.4.360.0600.00019.24
5.4.350.0700.00019.07
5.4.340.0070.03612.04
5.4.320.0060.03912.53
5.4.310.0090.03912.52
5.4.300.0090.03912.53
5.4.290.0080.03812.53
5.4.280.0050.03912.42
5.4.270.0070.04012.43
5.4.260.0100.03512.42
5.4.250.0080.03712.42
5.4.240.0050.03912.43
5.4.230.0060.04212.42
5.4.220.0050.03912.42
5.4.210.0050.03812.41
5.4.200.0080.03712.41
5.4.190.0050.03812.41
5.4.180.0050.04812.41
5.4.170.0070.03712.41
5.4.160.0070.03512.42
5.4.150.0060.04912.41
5.4.140.0060.04512.09
5.4.130.0100.03312.08
5.4.120.0040.03712.04
5.4.110.0060.03812.04
5.4.100.0100.03212.04
5.4.90.0090.03512.04
5.4.80.0070.03612.04
5.4.70.0050.03812.04
5.4.60.0060.03612.03
5.4.50.0090.03912.04
5.4.40.0080.03812.02
5.4.30.0040.03812.02
5.4.20.0070.03412.02
5.4.10.0080.03312.02
5.4.00.0090.03411.51
5.3.290.0060.04012.80
5.3.280.0050.04112.71
5.3.270.0080.04012.73
5.3.260.0030.04912.72
5.3.250.0090.04512.71
5.3.240.0070.03912.72
5.3.230.0100.05112.71
5.3.220.0070.04012.68
5.3.210.0100.05212.68
5.3.200.0040.04112.68
5.3.190.0040.04112.68
5.3.180.0120.03712.67
5.3.170.0070.04712.68
5.3.160.0090.04912.67
5.3.150.0070.04612.68
5.3.140.0120.04712.67
5.3.130.0070.04312.66
5.3.120.0050.04212.66
5.3.110.0070.03912.66
5.3.100.0070.03612.15
5.3.90.0070.03912.13
5.3.80.0070.03612.13
5.3.70.0050.03812.12
5.3.60.0060.03912.11
5.3.50.0070.04012.05
5.3.40.0080.03712.05
5.3.30.0060.03912.01
5.3.20.0050.03811.80
5.3.10.0060.03711.76
5.3.00.0050.03911.74
5.2.170.0060.0339.25
5.2.160.0080.0389.25
5.2.150.0070.0319.25
5.2.140.0070.0299.24
5.2.130.0040.0319.21
5.2.120.0080.0289.20
5.2.110.0050.0309.21
5.2.100.0030.0319.21
5.2.90.0060.0369.20
5.2.80.0050.0319.20
5.2.70.0050.0349.20
5.2.60.0060.0369.16
5.2.50.0050.0319.12
5.2.40.0060.0299.10
5.2.30.0040.0339.08
5.2.20.0070.0339.07
5.2.10.0050.0328.99
5.2.00.0080.0318.85
5.1.60.0050.0268.13
5.1.50.0070.0338.13
5.1.40.0070.0338.11
5.1.30.0050.0288.46
5.1.20.0090.0248.48
5.1.10.0060.0288.18
5.1.00.0060.0428.17
5.0.50.0070.0256.66
5.0.40.0050.0196.52
5.0.30.0070.0286.33
5.0.20.0020.0226.30
5.0.10.0060.0196.28
5.0.00.0040.0316.27
4.4.90.0010.0184.78
4.4.80.0030.0194.76
4.4.70.0070.0174.75
4.4.60.0020.0194.75
4.4.50.0020.0164.77
4.4.40.0020.0274.71
4.4.30.0070.0124.75
4.4.20.0040.0174.84
4.4.10.0010.0204.85
4.4.00.0040.0244.76
4.3.110.0030.0174.67
4.3.100.0050.0134.67
4.3.90.0020.0164.63
4.3.80.0010.0274.59
4.3.70.0040.0154.63
4.3.60.0030.0144.63
4.3.50.0010.0174.63
4.3.40.0020.0254.54
4.3.30.0020.0193.32
4.3.20.0020.0163.30
4.3.10.0020.0163.26
4.3.00.0000.01313.21