3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); $hash['info'][] = password_get_info($hash['hash'][0]); $hash['info'][] = password_get_info($hash['hash'][1]); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_BCRYPT,$options); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_DEFAULT); $hash['rehash'][] = password_needs_rehash($hash['hash'][1],PASSWORD_DEFAULT); $hash['pas_verify'][] = password_verify('rasmuslerdorf', $hash['hash'][0]); $hash['pas_verify'][] = password_verify('rasmuslerdorf', $hash['hash'][1]); var_dump($hash);

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.2.60.0100.14216.80
7.2.00.0000.15319.38
7.1.200.0030.14815.88
7.1.100.0030.14717.79
7.1.70.0030.18417.07
7.1.60.0100.20619.40
7.1.50.0070.16716.89
7.1.00.0030.24022.30
7.0.200.0370.14016.69
7.0.140.0100.23021.90
7.0.60.0370.21719.96
7.0.50.0100.24317.89
7.0.40.0000.18317.79
7.0.30.0000.20017.82
7.0.20.0100.21317.85
7.0.10.0070.25017.75
7.0.00.0130.21317.75
5.6.280.0000.25720.92
5.6.210.0000.18020.51
5.6.200.0000.19718.14
5.6.190.0070.23318.27
5.6.180.0130.20318.28
5.6.170.0070.24018.27
5.6.160.0070.22718.17
5.6.150.0000.20318.16
5.6.140.0000.25018.26
5.6.130.0070.19018.25
5.6.120.0100.23718.14
5.6.110.0130.23018.27
5.6.100.0130.23318.16
5.6.90.0100.23018.12
5.6.80.0030.17017.52
5.6.70.0030.17017.66
5.6.60.0030.17317.54
5.6.50.0000.18317.66
5.6.40.0030.17317.54
5.6.30.0070.17017.54
5.6.20.0000.18717.49
5.6.10.0100.16317.60
5.6.00.0030.17317.52
5.5.350.0100.23020.37
5.5.340.0070.24018.04
5.5.330.0030.25018.04
5.5.320.0030.19718.05
5.5.310.0030.24018.02
5.5.300.0100.24017.96
5.5.290.0000.24318.03
5.5.280.0070.23718.09
5.5.270.0070.19017.94
5.5.260.0130.22318.04
5.5.250.0000.18017.88
5.5.240.0000.17317.34
5.5.230.0030.17017.36
5.5.220.0030.17017.34
5.5.210.0030.17317.42
5.5.200.0000.17317.29
5.5.190.0000.17317.39
5.5.180.0000.17317.30
5.5.160.0030.17017.49
5.5.150.0070.16717.33
5.5.140.0030.23717.43
5.5.130.0030.24717.38
5.5.120.0070.23717.36
5.5.110.0000.18017.36
5.5.100.0070.22717.30
5.5.90.0070.18717.32
5.5.80.0070.19317.23
5.5.70.0000.20017.25
5.5.60.0100.24017.22
5.5.50.0070.17717.39
5.5.40.0100.22317.32
5.5.30.0130.17717.25
5.5.20.0070.19017.21
5.5.10.0000.22017.18
5.5.00.0130.21717.25
5.4.450.0100.04319.40
5.4.440.0030.07319.30
5.4.430.0100.08019.33
5.4.420.0030.05019.34
5.4.410.0070.03719.23
5.4.400.0070.04319.13
5.4.390.0030.03719.07
5.4.380.0030.03719.00
5.4.370.0030.03718.98
5.4.360.0000.04018.97
5.4.350.0030.04719.12
5.4.340.0070.04719.00
5.4.320.0070.03319.12
5.4.310.0030.03718.99
5.4.300.0070.03718.98
5.4.290.0030.03719.12
5.4.280.0030.08718.82
5.4.270.0100.04318.96
5.4.260.0000.08018.98
5.4.250.0070.06719.02
5.4.240.0100.07719.00
5.4.230.0070.04718.99
5.4.220.0070.08019.13
5.4.210.0100.07019.02
5.4.200.0000.05319.00
5.4.190.0070.07318.98
5.4.180.0100.06718.96
5.4.170.0030.08018.81
5.4.160.0030.08019.07
5.4.150.0130.07018.98
5.4.140.0100.04716.28
5.4.130.0130.06016.44
5.4.120.0100.06316.46
5.4.110.0030.05016.33
5.4.100.0030.06016.33
5.4.90.0100.06716.20
5.4.80.0000.06316.27
5.4.70.0030.03716.23
5.4.60.0070.06716.25
5.4.50.0070.04316.20
5.4.40.0100.03316.32
5.4.30.0100.07016.32
5.4.20.0000.04316.25
5.4.10.0030.06016.34
5.4.00.0030.07715.60
5.3.290.0000.04014.58
5.3.280.0030.04314.54
5.3.270.0100.07314.57
5.3.260.0100.07714.57
5.3.250.0070.07314.57
5.3.240.0130.07014.54
5.3.230.0100.07014.56
5.3.220.0030.05314.40
5.3.210.0070.03714.54
5.3.200.0030.07314.50
5.3.190.0070.03714.53
5.3.180.0100.03014.39
5.3.170.0100.06314.51
5.3.160.0100.07014.48
5.3.150.0030.07314.53
5.3.140.0070.08014.64
5.3.130.0030.08014.37
5.3.120.0030.03714.33
5.3.110.0070.07014.50
5.3.100.0030.07713.95
5.3.90.0130.05713.79
5.3.80.0000.04014.09
5.3.70.0070.06313.98
5.3.60.0000.07313.94
5.3.50.0030.07713.88
5.3.40.0100.07313.87
5.3.30.0030.07313.85
5.3.20.0070.05713.46
5.3.10.0100.05713.43
5.3.00.0030.07313.43
5.2.170.0070.03711.18
5.2.160.0070.06011.12
5.2.150.0170.03711.29
5.2.140.0070.05711.12
5.2.130.0130.04311.04
5.2.120.0030.06011.10
5.2.110.0070.05711.10
5.2.100.0030.06711.23
5.2.90.0030.06711.24
5.2.80.0070.05710.91
5.2.70.0170.05010.91
5.2.60.0070.05711.03
5.2.50.0070.05311.05
5.2.40.0030.05711.02
5.2.30.0000.06310.89
5.2.20.0100.05310.94
5.2.10.0030.06310.85
5.2.00.0070.05010.75
5.1.60.0070.03010.04
5.1.50.0030.0409.93
5.1.40.0030.0409.93
5.1.30.0000.06010.33
5.1.20.0000.06010.36
5.1.10.0130.05010.05
5.1.00.0000.05310.14
5.0.50.0000.0279.29
5.0.40.0070.0409.29
5.0.30.0070.0639.29
5.0.20.0030.0379.29
5.0.10.0000.0239.29
5.0.00.0030.0339.29
4.4.90.0000.0379.29
4.4.80.0000.0379.29
4.4.70.0000.0279.29
4.4.60.0070.0339.29
4.4.50.0100.0309.29
4.4.40.0030.0539.29
4.4.30.0000.0379.29
4.4.20.0000.0279.29
4.4.10.0030.0209.29
4.4.00.0000.0579.29
4.3.110.0070.0339.29
4.3.100.0070.0179.29
4.3.90.0030.0179.29
4.3.80.0000.0579.29
4.3.70.0000.0309.29
4.3.60.0030.0339.29
4.3.50.0000.0279.29
4.3.40.0030.0509.29
4.3.30.0000.0409.29
4.3.20.0030.0339.29
4.3.10.0000.0309.29
4.3.00.0030.0339.29

preferences:
34.55 ms | 401 KiB | 5 Q