3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = [ 'cost' => 11, 'salt' => mcrypt_create_iv(16, MCRYPT_DEV_URANDOM), ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n";

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.60.0100.00316.26
7.2.00.0060.00619.39
7.1.200.0030.01115.71
7.1.100.0040.00818.18
7.1.70.0030.01217.11
7.1.60.0070.01719.40
7.1.50.0060.01616.84
7.1.00.0000.04022.31
7.0.200.0040.00416.57
7.0.140.0070.07321.95
7.0.60.0030.08719.99
7.0.50.0030.04317.87
7.0.40.0130.08320.26
7.0.30.0200.04720.08
7.0.20.0270.06020.09
7.0.10.0070.08320.17
7.0.00.0070.07020.30
5.6.280.0000.07720.92
5.6.210.0030.05720.61
5.6.200.0030.04018.24
5.6.190.0070.07720.41
5.6.180.0170.07720.77
5.6.170.0300.07720.52
5.6.160.0030.05320.48
5.6.150.0170.07018.07
5.6.140.0100.08018.17
5.6.130.0100.08018.28
5.6.120.0070.08020.98
5.6.110.0000.09320.97
5.6.100.0100.03320.98
5.6.90.0070.08721.11
5.6.80.0100.08020.36
5.5.350.0200.04020.39
5.5.340.0070.05317.99
5.5.330.0100.08720.42
5.5.320.0370.07320.29
5.5.310.0230.03720.30
5.5.300.0030.04017.91
5.5.290.0070.05718.09
5.5.280.0100.07720.64
5.5.270.0070.06320.79
5.5.260.0100.08020.76
5.5.250.0200.07020.69
5.5.240.0030.07720.27
5.4.450.0200.04019.57
5.4.440.0300.03019.57
5.4.430.0270.06319.20
5.4.420.0330.05719.20
5.4.410.0270.06018.98
5.4.400.0230.07719.07
5.4.390.0270.04019.04
5.4.380.0470.03018.91
5.4.370.0530.02319.06
5.4.360.0370.06319.16
5.4.350.0200.04319.13
5.4.340.0370.04019.16
5.4.320.0370.04019.13
5.4.310.0400.06019.05
5.4.300.0330.06018.88
5.4.290.0230.04018.77
5.4.280.0300.05718.93
5.4.270.0330.05019.19
5.4.260.0370.03019.16
5.4.250.0300.03019.13
5.4.240.0330.04318.80
5.4.230.0300.04719.13
5.4.220.0330.07019.23
5.4.210.0370.03718.78
5.4.200.0300.07019.08
5.4.190.0230.03718.87
5.4.180.0300.06719.21
5.4.170.0230.05718.79
5.4.160.0400.03719.11
5.4.150.0370.06318.78
5.4.140.0330.04316.30
5.4.130.0230.05716.27
5.4.120.0230.03016.30
5.4.110.0230.04316.34
5.4.100.0300.06316.46
5.4.90.0300.04016.43
5.4.80.0230.06716.37
5.4.70.0230.07316.41
5.4.60.0330.07016.36
5.4.50.0400.06316.36
5.4.40.0370.06016.31
5.4.30.0470.03016.40
5.4.20.0200.04316.29
5.4.10.0270.03716.38
5.4.00.0330.06715.90
5.3.290.0330.07314.52
5.3.280.0230.03314.54
5.3.270.0230.07314.48
5.3.260.0400.07014.59
5.3.250.0370.06714.54
5.3.240.0200.04014.48
5.3.230.0200.03714.69
5.3.220.0230.04314.51
5.3.210.0300.06714.50
5.3.200.0300.02714.44
5.3.190.0330.05314.44
5.3.180.0300.05014.42
5.3.170.0270.06714.66
5.3.160.0300.07014.44
5.3.150.0230.04314.42
5.3.140.0300.07314.40
5.3.130.0300.05314.52
5.3.120.0330.07014.64
5.3.110.0400.04714.64
5.3.100.0400.04013.90
5.3.90.0270.03313.97
5.3.80.0270.07014.05
5.3.70.0230.05713.92
5.3.60.0230.04013.85
5.3.50.0330.07013.92
5.3.40.0200.04313.97
5.3.30.0330.03713.96
5.3.20.0230.06313.63
5.3.10.0300.03013.68
5.3.00.0330.07313.47
5.2.170.0270.03711.82
5.2.160.0230.03011.82
5.2.150.0330.05311.82
5.2.140.0230.02711.82
5.2.130.0230.06311.82
5.2.120.0300.04311.82
5.2.110.0270.05711.82
5.2.100.0330.04311.82
5.2.90.0170.03311.82
5.2.80.0200.05311.82
5.2.70.0200.06011.82
5.2.60.0300.05311.82
5.2.50.0300.05311.82
5.2.40.0330.03711.82
5.2.30.0200.04011.82
5.2.20.0230.03311.82
5.2.10.0170.05011.82
5.2.00.0230.03011.82
5.1.60.0130.03311.82
5.1.50.0270.02711.82
5.1.40.0230.02311.82
5.1.30.0270.04711.82
5.1.20.0170.04311.82
5.1.10.0270.05011.82
5.1.00.0230.05311.82
5.0.50.0100.04011.82
5.0.40.0200.02011.82
5.0.30.0130.06711.82
5.0.20.0200.03311.82
5.0.10.0200.03711.82
5.0.00.0130.03311.82
4.4.90.0100.02311.82
4.4.80.0070.04011.82
4.4.70.0170.02011.82
4.4.60.0170.03011.82
4.4.50.0200.02011.82
4.4.40.0100.02311.82
4.4.30.0170.03011.82
4.4.20.0130.02011.82
4.4.10.0130.03311.82
4.4.00.0130.04011.82
4.3.110.0170.02711.82
4.3.100.0170.02711.82
4.3.90.0130.03311.82
4.3.80.0170.03311.82
4.3.70.0100.02311.82
4.3.60.0070.02011.82
4.3.50.0230.02311.82
4.3.40.0130.03311.82
4.3.30.0030.01711.82
4.3.20.0100.01711.82
4.3.10.0070.02011.82
4.3.00.0030.01711.82