3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hundred = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; $password = 'foo'; $hash = password_hash($hundred . $password, PASSWORD_BCRYPT); $result = password_verify($hundred . 'gghdhdhdhBAR', $hash); var_dump($result);
based on 8goeA

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.0000.13616.50
7.2.00.0030.13719.36
7.1.200.0070.13015.86
7.1.100.0030.13218.09
7.1.70.0000.13316.96
7.1.60.0070.20319.46
7.1.50.0100.12716.61
7.1.00.0030.23722.40
7.0.200.0000.12716.72
7.0.140.0030.16022.09
7.0.110.0000.14019.90
7.0.100.0030.13319.94
7.0.90.0000.17020.03
7.0.80.0130.13319.82
7.0.70.0370.17719.88
7.0.60.0400.19020.03
7.0.50.0430.20720.06
7.0.40.0000.14319.66
7.0.30.0000.14719.84
7.0.20.0070.20719.87
7.0.10.0200.20719.69
7.0.00.0070.16719.72
5.6.280.0030.23321.07
5.6.260.0030.16320.70
5.6.250.0000.14020.49
5.6.240.0030.13320.69
5.6.230.0030.13320.65
5.6.220.0070.14020.56
5.6.210.0030.17720.60
5.6.200.0000.21320.70
5.6.190.0000.20320.46
5.6.180.0070.13720.64
5.6.170.0000.21720.67
5.6.160.0100.22320.46
5.6.150.0170.18320.69
5.6.140.0000.18020.64
5.6.130.0000.17020.61
5.6.120.0000.16720.64
5.6.110.0030.16320.69
5.6.100.0030.16320.68
5.6.90.0030.17020.61
5.6.80.0000.23319.94
5.6.70.0070.17719.91
5.6.60.0100.20319.95
5.6.50.0030.21319.93
5.6.40.0100.18720.21
5.6.30.0000.16720.01
5.6.20.0130.20719.91
5.6.10.0070.20019.97
5.6.00.0130.20320.17
5.5.380.0000.16317.61
5.5.370.0000.16317.70
5.5.360.0030.24017.53
5.5.350.0000.16317.62
5.5.340.0100.20718.23
5.5.330.0000.17017.89
5.5.320.0030.17718.03
5.5.310.0070.16017.91
5.5.300.0130.13318.25
5.5.290.0100.21017.77
5.5.280.0100.15717.98
5.5.270.0070.20318.13
5.5.260.0030.19317.77
5.5.250.0030.17717.88
5.5.240.0070.23017.37
5.5.230.0000.14317.63
5.5.220.0000.16317.38
5.5.210.0000.22717.47
5.5.200.0130.19317.29
5.5.190.0070.21317.44
5.5.180.0000.17017.58
5.5.160.0000.18017.45
5.5.150.0070.16017.44
5.5.140.0070.15717.23
5.5.130.0070.19317.43
5.5.120.0030.17717.48
5.5.110.0070.21017.44
5.5.100.0130.22317.12
5.5.90.0100.16317.16
5.5.80.0030.16017.01
5.5.70.0000.18317.01
5.5.60.0270.14317.15
5.5.50.0030.19717.47
5.5.40.0070.18717.05
5.5.30.0030.14017.46
5.5.20.0000.18017.37
5.5.10.0000.16317.15
5.5.00.0000.19017.16
5.4.450.0030.05719.33
5.4.440.0070.06319.40
5.4.430.0100.03019.40
5.4.420.0100.06019.35
5.4.410.0200.06319.12
5.4.400.0000.04018.93
5.4.390.0130.07319.00
5.4.380.0030.07718.98
5.4.370.0000.04019.01
5.4.360.0070.05019.02
5.4.350.0130.03719.12
5.4.340.0000.04319.25
5.4.320.0000.06319.12
5.4.310.0130.06319.12
5.4.300.0070.06018.96
5.4.290.0170.05719.25
5.4.280.0100.07718.95
5.4.270.0070.03319.03
5.4.260.0030.08019.25
5.4.250.0030.03719.01
5.4.240.0030.03718.94
5.4.230.0030.04719.00
5.4.220.0130.03019.07
5.4.210.0070.03719.11
5.4.200.0000.06318.95
5.4.190.0030.03718.95
5.4.180.0030.06019.25
5.4.170.0030.06019.00
5.4.160.0030.04318.97
5.4.150.0000.04019.11
5.4.140.0070.04716.23
5.4.130.0030.06016.21
5.4.120.0030.03316.44
5.4.110.0000.04016.52
5.4.100.0030.05016.38
5.4.90.0130.05316.24
5.4.80.0100.03016.28
5.4.70.0070.03016.52
5.4.60.0000.03716.26
5.4.50.0100.02716.10
5.4.40.0000.04016.40
5.4.30.0070.03316.55
5.4.20.0000.03716.34
5.4.10.0030.03016.27
5.4.00.0030.03715.63
5.3.290.0030.07714.60
5.3.280.0030.04014.66
5.3.270.0130.02714.54
5.3.260.0100.07014.68
5.3.250.0000.03714.54
5.3.240.0000.04014.67
5.3.230.0000.06714.44
5.3.220.0070.04314.45
5.3.210.0030.04014.63
5.3.200.0070.04014.56
5.3.190.0000.04314.57
5.3.180.0100.05314.57
5.3.170.0000.03714.57
5.3.160.0000.04014.66
5.3.150.0030.03714.57
5.3.140.0000.03714.57
5.3.130.0070.03014.47
5.3.120.0100.03314.48
5.3.110.0000.04014.61
5.3.100.0000.03313.86
5.3.90.0030.04313.85
5.3.80.0000.03313.85
5.3.70.0100.03013.79
5.3.60.0000.04013.93
5.3.50.0030.03013.88
5.3.40.0000.05313.90
5.3.30.0130.06713.91
5.3.20.0070.03313.62
5.3.10.0130.02713.58
5.3.00.0030.03713.52
5.2.170.0000.02711.96
5.2.160.0070.02011.96
5.2.150.0130.05311.96
5.2.140.0000.04011.96
5.2.130.0030.02711.96
5.2.120.0030.02711.96
5.2.110.0030.03011.96
5.2.100.0000.03011.96
5.2.90.0000.03011.96
5.2.80.0030.03711.96
5.2.70.0030.02711.96
5.2.60.0030.03011.96
5.2.50.0000.03311.96
5.2.40.0000.03011.96
5.2.30.0070.04011.96
5.2.20.0070.04711.96
5.2.10.0000.03711.96
5.2.00.0000.03011.96
5.1.60.0000.02311.96
5.1.50.0030.02011.96
5.1.40.0030.02311.96
5.1.30.0070.01711.96
5.1.20.0030.02011.96
5.1.10.0000.02311.96
5.1.00.0030.03311.96
5.0.50.0030.01311.96
5.0.40.0000.02311.96
5.0.30.0030.02711.96
5.0.20.0000.01711.96
5.0.10.0030.03011.96
5.0.00.0000.03311.96
4.4.90.0000.01311.96
4.4.80.0000.01711.96
4.4.70.0000.02011.96
4.4.60.0000.01711.96
4.4.50.0000.01311.96
4.4.40.0000.02311.96
4.4.30.0000.01311.96
4.4.20.0000.01311.96
4.4.10.0000.01711.96
4.4.00.0030.02311.96
4.3.110.0030.02711.96
4.3.100.0070.01011.96
4.3.90.0000.02311.96
4.3.80.0000.02011.96
4.3.70.0030.01011.96
4.3.60.0000.01311.96
4.3.50.0030.01311.96
4.3.40.0000.02011.96
4.3.30.0000.01311.96
4.3.20.0000.01311.96
4.3.10.0000.01311.96
4.3.00.0000.02011.96