3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = md5('static salt'); for ($i = 0; $i < 5; $i++) { echo password_hash('reddit is fun', PASSWORD_DEFAULT, ['salt' => $salt, 'cost' => 4]) . PHP_EOL; }
based on RsQ61

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.0090.01216.79
7.2.00.0070.00719.18
7.1.200.0030.01615.97
7.1.100.0100.01018.08
7.1.70.0030.01617.31
7.1.60.0100.02719.43
7.1.50.0030.01316.86
7.1.00.0070.07322.37
7.0.200.0000.01316.70
7.0.60.0070.08720.06
7.0.50.0130.07717.90
7.0.40.0170.07320.27
7.0.30.0330.07720.09
7.0.20.0130.05320.04
7.0.10.0370.08020.07
7.0.00.0030.09720.10
5.6.280.0030.04020.80
5.6.210.0130.08320.51
5.6.200.0100.05018.18
5.6.190.0130.05320.41
5.6.180.0030.08320.39
5.6.170.0270.08320.47
5.6.160.0200.04320.39
5.6.150.0070.06318.21
5.6.140.0070.09018.12
5.6.130.0070.07018.10
5.6.120.0030.07020.98
5.6.110.0130.03720.98
5.6.100.0070.09020.97
5.6.90.0070.09020.88
5.6.80.0070.08720.38
5.5.350.0000.09320.40
5.5.340.0070.08017.98
5.5.330.0100.09020.25
5.5.320.0070.05720.28
5.5.310.0270.06020.24
5.5.300.0030.06017.98
5.5.290.0100.04017.98
5.5.280.0100.08720.77
5.5.270.0100.09720.96
5.5.260.0130.08720.77
5.5.250.0130.08020.68
5.5.240.0130.03720.25
5.4.450.0730.05719.39
5.4.440.0900.05719.43
5.4.430.0830.06318.99
5.4.420.0770.06719.57
5.4.410.0670.04718.85
5.4.400.0530.06018.97
5.4.390.0900.04319.16
5.4.380.0770.05019.16
5.4.370.0730.05719.02
5.4.360.0870.04718.96
5.4.350.0830.05019.06
5.4.340.0730.05719.06
5.4.320.0700.07318.67
5.4.310.0830.04718.67
5.4.300.0800.05019.14
5.4.290.0770.05319.02
5.4.280.0670.06018.65
5.4.270.0600.05719.26
5.4.260.0570.05719.10
5.4.250.0570.05719.13
5.4.240.0930.03719.09
5.4.230.0730.05718.81
5.4.220.0770.05718.96
5.4.210.0900.04018.88
5.4.200.0770.05319.05
5.4.190.0770.05019.00
5.4.180.0830.04318.96
5.4.170.0730.05318.64
5.4.160.0800.06318.59
5.4.150.0800.05319.13
5.4.140.0670.06316.28
5.4.130.0700.05316.14
5.4.120.0770.05016.34
5.4.110.0830.04316.14
5.4.100.0700.06016.02
5.4.90.0800.04716.42
5.4.80.0630.04716.33
5.4.70.0700.04016.38
5.4.60.0630.05016.46
5.4.50.0630.04316.37
5.4.40.0970.04716.40
5.4.30.0770.05316.48
5.4.20.0700.04015.99
5.4.10.0670.06016.42
5.4.00.0700.05315.91
5.3.290.0700.06314.50
5.3.280.0830.06314.54
5.3.270.0670.05014.57
5.3.260.0730.05314.57
5.3.250.0770.05014.45
5.3.240.0670.06314.39
5.3.230.0800.04714.46
5.3.220.0730.05314.44
5.3.210.0730.05314.41
5.3.200.0800.04714.45
5.3.190.0770.05014.54