3v4l.org

run code in 300+ PHP versions simultaneously
<?php function password_verify_with_rehash($password, $hash) { if (!password_verify($password, $hash)) { return false; } if (password_needs_rehash($hash, PASSWORD_DEFAULT)) { $hash = password_hash($password, PASSWORD_DEFAULT); return $hash; } } var_dump( password_verify_with_rehash() );

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.4.10.0070.01014.93
7.4.00.0060.00615.07
7.3.130.0040.01514.90
7.3.120.0080.01014.89
7.3.110.0060.00914.81
7.3.100.0070.00614.54
7.3.90.0030.01214.76
7.3.80.0050.00714.93
7.3.70.0100.00514.89
7.3.60.0050.00514.87
7.3.50.0070.00614.70
7.3.40.0070.00814.59
7.3.30.0050.00714.74
7.3.20.0000.01816.67
7.3.10.0070.00616.68
7.3.00.0080.00516.65
7.2.260.0090.00914.67
7.2.250.0050.01215.00
7.2.240.0040.01514.78
7.2.230.0040.01014.89
7.2.220.0040.00914.85
7.2.210.0050.01214.87
7.2.200.0070.00514.88
7.2.190.0060.00814.75
7.2.180.0060.00714.86
7.2.170.0050.00814.93
7.2.160.0070.01114.61
7.2.150.0030.01216.60
7.2.140.0070.00416.48
7.2.130.0060.00616.60
7.2.120.0030.00916.64
7.2.110.0070.01016.65
7.2.100.0080.00816.93
7.2.90.0070.01016.81
7.2.80.0040.01216.79
7.2.70.0030.01016.51
7.2.60.0070.00816.63
7.2.50.0030.01316.45
7.2.40.0060.00916.67
7.2.30.0000.01016.96
7.2.20.0160.00316.86
7.2.10.0040.01416.76
7.2.00.0040.00917.78
7.1.330.0100.00415.77
7.1.320.0060.00815.63
7.1.310.0050.01115.45
7.1.300.0070.00615.38
7.1.290.0080.00515.46
7.1.280.0020.01215.53
7.1.270.0000.01115.61
7.1.260.0050.01115.55
7.1.250.0060.00615.35
7.1.240.0000.01115.51
7.1.230.0080.00815.28
7.1.220.0070.00715.44
7.1.210.0060.00615.45
7.1.200.0050.00515.57
7.1.190.0040.00815.70
7.1.180.0060.00915.61
7.1.170.0050.00515.27
7.1.160.0040.01115.55
7.1.150.0090.00615.52
7.1.140.0060.01215.76
7.1.130.0040.01115.55
7.1.120.0040.00715.55
7.1.110.0060.00615.54
7.1.100.0040.00616.80
7.1.90.0100.00315.80
7.1.80.0000.01115.65
7.1.70.0060.00616.25
7.1.60.0100.00917.69
7.1.50.0100.01125.10
7.1.40.0030.00515.43
7.1.30.0100.00315.65
7.1.20.0000.01815.63
7.1.10.0000.00815.48
7.1.00.0010.04419.13
7.0.330.0030.00615.50
7.0.320.0070.01015.21
7.0.310.0060.00915.54
7.0.300.0090.00315.46
7.0.290.0000.01615.34
7.0.280.0030.00515.44
7.0.270.0080.00315.16
7.0.260.0000.01015.46
7.0.250.0070.00715.60
7.0.240.0030.00715.70
7.0.230.0070.00315.34
7.0.220.0030.01215.61
7.0.210.0030.00615.51
7.0.200.0070.00616.15
7.0.190.0090.00615.59
7.0.180.0060.00615.56
7.0.170.0000.01215.43
7.0.160.0030.00915.43
7.0.150.0000.01015.38
7.0.140.0020.04418.74
7.0.130.0030.00615.34
7.0.120.0080.00515.14
7.0.110.0000.01315.15
7.0.100.0110.00415.49
7.0.90.0080.00015.33
7.0.80.0280.04117.55
7.0.70.0140.03817.68
7.0.60.0350.02817.66
7.0.50.0350.04017.77
7.0.40.0100.04216.86
7.0.30.0060.02716.75
7.0.20.0090.04316.83
7.0.10.0080.03516.76
7.0.00.0070.04316.87
5.6.400.0000.01814.48
5.6.390.0060.00613.79
5.6.380.0030.01314.24
5.6.370.0060.00314.09
5.6.360.0070.00714.25
5.6.350.0030.01014.46
5.6.340.0090.00614.25
5.6.330.0030.01214.25
5.6.320.0130.00014.16
5.6.310.0000.01214.55
5.6.300.0070.00714.18
5.6.290.0070.01014.50
5.6.280.0030.04217.61
5.6.270.0030.01014.64
5.6.260.0000.01514.52
5.6.250.0030.01314.15
5.6.240.0030.00714.07
5.6.230.0050.04517.62
5.6.220.0120.03517.34
5.6.210.0050.04517.45
5.6.200.0100.03717.62
5.6.190.0080.04417.57
5.6.180.0050.02517.76
5.6.170.0080.02817.64
5.6.160.0070.03317.74
5.6.150.0090.04217.52
5.6.140.0060.04117.54
5.6.130.0030.02917.76
5.6.120.0070.02617.68
5.6.110.0100.04417.60
5.6.100.0100.04317.56
5.6.90.0090.02217.68
5.6.80.0080.03017.40
5.6.70.0100.02717.26
5.6.60.0040.03617.22
5.6.50.0080.02117.28
5.6.40.0060.02317.44
5.6.30.0100.01817.28
5.6.20.0030.03217.12
5.6.10.0050.03817.24
5.6.00.0050.02117.39
5.5.380.0040.00814.19
5.5.370.0080.04217.36
5.5.360.0120.04017.45
5.5.350.0070.04517.40
5.5.340.0050.02517.58
5.5.330.0050.04417.56
5.5.320.0080.04117.68
5.5.310.0140.04017.51
5.5.300.0050.03017.52
5.5.290.0050.04717.42
5.5.280.0100.04117.35
5.5.270.0050.04617.54
5.5.260.0050.04717.50
5.5.250.0090.02417.33
5.5.240.0000.02916.97
5.5.230.0080.02617.14
5.5.220.0100.02217.18
5.5.210.0100.01717.23
5.5.200.0030.02417.18
5.5.190.0020.02717.01
5.5.180.0090.02017.20
5.5.170.0080.00414.33
5.5.160.0050.02617.22
5.5.150.0070.02517.21
5.5.140.0010.02316.95
5.5.130.0070.02817.23
5.5.120.0080.02017.26
5.5.110.0070.02217.03
5.5.100.0020.02617.02
5.5.90.0050.02216.93
5.5.80.0030.02317.12
5.5.70.0100.01517.14
5.5.60.0110.01616.99
5.5.50.0070.02017.14
5.5.40.0030.02217.05
5.5.30.0080.03117.21
5.5.20.0020.02517.02
5.5.10.0060.02117.01
5.5.00.0080.02116.93
5.4.450.0050.02715.25
5.4.440.0050.02315.22
5.4.430.0070.02715.32
5.4.420.0060.03115.22
5.4.410.0030.02315.28
5.4.400.0030.02515.18
5.4.390.0040.02415.24
5.4.380.0050.03215.16
5.4.370.0020.02315.06
5.4.360.0040.02015.18
5.4.350.0030.02215.22
5.4.340.0040.02515.15
5.4.330.0030.00911.27
5.4.320.0060.02015.06
5.4.310.0030.02715.16
5.4.300.0050.03215.20
5.4.290.0040.02215.09
5.4.280.0020.02515.25
5.4.270.0000.02515.20
5.4.260.0060.01815.24
5.4.250.0050.01815.15
5.4.240.0030.02115.25
5.4.230.0040.01815.25
5.4.220.0020.02315.22
5.4.210.0030.02315.07
5.4.200.0030.02015.21
5.4.190.0040.02615.15
5.4.180.0050.02015.10
5.4.170.0050.02015.14
5.4.160.0050.02115.07
5.4.150.0040.02215.20
5.4.140.0050.02113.86
5.4.130.0050.02313.77
5.4.120.0030.02213.84
5.4.110.0030.02113.85
5.4.100.0030.01813.87
5.4.90.0050.03013.79
5.4.80.0050.02313.86
5.4.70.0050.01813.79
5.4.60.0090.02913.82
5.4.50.0050.04213.82
5.4.40.0070.02513.90
5.4.30.0050.03613.85
5.4.20.0030.02913.87
5.4.10.0070.03513.86
5.4.00.0050.03813.53
5.3.290.0050.01712.99
5.3.280.0020.02212.89
5.3.270.0000.03812.92
5.3.260.0060.02512.91
5.3.250.0020.02613.01
5.3.240.0070.01812.92
5.3.230.0020.02212.99
5.3.220.0020.02312.94
5.3.210.0030.02412.96
5.3.200.0020.02412.95
5.3.190.0080.01812.98
5.3.180.0080.01812.98
5.3.170.0050.02012.92
5.3.160.0070.03812.98
5.3.150.0060.04012.92
5.3.140.0030.04012.95
5.3.130.0080.03512.87
5.3.120.0060.03512.91
5.3.110.0050.04012.87
5.3.100.0060.03612.62
5.3.90.0080.03512.61
5.3.80.0090.01812.63
5.3.70.0020.02812.59
5.3.60.0020.02612.64
5.3.50.0050.03912.57
5.3.40.0090.03012.67
5.3.30.0050.03812.57
5.3.20.0030.04012.51
5.3.10.0030.03712.49
5.3.00.0050.02312.45
5.2.170.0100.06013.50
5.2.160.0030.06713.50
5.2.150.0100.05313.50
5.2.140.0070.05713.50
5.2.130.0100.05713.50
5.2.120.0000.06713.50
5.2.110.0000.06713.50
5.2.100.0030.04713.50
5.2.90.0100.04713.50
5.2.80.0030.06313.50
5.2.70.0000.05013.50
5.2.60.0030.04313.50
5.2.50.0030.06013.50
5.2.40.0000.04313.50
5.2.30.0070.03713.50
5.2.20.0030.06013.50
5.2.10.0030.06013.50
5.2.00.0070.05313.50
5.1.60.0070.03013.50
5.1.50.0100.04713.50
5.1.40.0070.04313.50
5.1.30.0070.05313.50
5.1.20.0030.03713.50
5.1.10.0000.05013.50
5.1.00.0000.03313.50
5.0.50.0000.03713.50
5.0.40.0030.04313.50
5.0.30.0170.05013.50
5.0.20.0000.04713.50
5.0.10.0000.03013.50
5.0.00.0000.06713.50
4.4.90.0030.03013.50
4.4.80.0030.03313.50
4.4.70.0000.03013.50
4.4.60.0000.03013.50
4.4.50.0030.03313.50
4.4.40.0030.05313.50
4.4.30.0000.03713.50
4.4.20.0100.02713.50
4.4.10.0030.03313.50
4.4.00.0070.05013.50
4.3.110.0030.03013.50
4.3.100.0000.03713.50
4.3.90.0030.02713.50
4.3.80.0000.05313.50
4.3.70.0000.04013.50
4.3.60.0000.03313.50
4.3.50.0000.03713.50
4.3.40.0100.04313.50
4.3.30.0030.03713.50
4.3.20.0100.03013.50
4.3.10.0000.02713.50
4.3.00.0070.02313.50

preferences:
39.49 ms | 401 KiB | 5 Q