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("rasmuslerdorff", 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.4.00.0030.16015.16
7.3.120.0100.15314.75
7.3.110.0100.15315.11
7.3.100.0100.14814.74
7.3.90.0070.15614.94
7.3.80.0070.14414.72
7.3.70.0000.14614.56
7.3.60.0070.14014.96
7.3.50.0030.15014.79
7.3.40.0030.14014.70
7.3.30.0130.13914.77
7.3.20.0030.14216.72
7.3.10.0100.14316.57
7.3.00.0070.14916.70
7.2.250.0030.15715.10
7.2.240.0100.15515.01
7.2.230.0070.14414.84
7.2.220.0070.15514.71
7.2.210.0070.14314.98
7.2.200.0030.14914.85
7.2.190.0070.15515.07
7.2.180.0030.14914.93
7.2.170.0030.13915.10
7.2.130.0030.14216.81
7.2.120.0030.14216.95
7.2.110.0070.14616.81
7.2.100.0070.14417.02
7.2.90.0030.14816.95
7.2.80.0170.13616.91
7.2.70.0060.14516.74
7.2.60.0050.14616.72
7.2.50.0070.13816.86
7.2.40.0000.15116.74
7.2.30.0070.14616.88
7.2.20.0000.15216.95
7.2.10.0070.14216.83
7.2.00.0080.14418.15
7.1.330.0030.15315.69
7.1.320.0000.14815.60
7.1.310.0070.15615.69
7.1.300.0030.14215.77
7.1.290.0070.14015.59
7.1.280.0070.13915.87
7.1.270.0030.14615.64
7.1.260.0100.14215.55
7.1.250.0000.15015.65
7.1.200.0000.15415.81
7.1.100.0030.15317.94
7.1.70.0000.14717.15
7.1.60.0070.22319.82
7.1.50.0100.21317.07
7.1.00.0100.23022.50
7.0.200.0030.13916.75
7.0.140.0000.24722.03
7.0.100.0130.20320.02
7.0.90.0170.21320.00
7.0.80.0330.22020.00
7.0.70.0270.19019.88
7.0.60.0030.18319.95
7.0.50.0100.23720.45
7.0.40.0100.20320.08
7.0.30.0070.24020.07
7.0.20.0100.23720.13
7.0.10.0100.24020.07
7.0.00.0130.17020.09
5.6.280.0070.23720.91
5.6.250.0070.18720.70
5.6.240.0100.20720.49
5.6.230.0070.22720.68
5.6.220.0130.21720.66
5.6.210.0100.21020.53
5.6.200.0100.19321.18
5.6.190.0070.22321.14
5.6.180.0070.20321.09
5.6.170.0070.25721.06
5.6.160.0170.23021.17
5.6.150.0070.21321.14
5.6.140.0070.23721.00
5.6.130.0170.22020.97
5.6.120.0130.25020.95
5.6.110.0200.22721.05
5.6.100.0130.21720.98
5.6.90.0070.24720.93
5.6.80.0030.25720.36
5.6.70.0030.23720.33
5.6.60.0070.20720.42
5.6.50.0170.22320.47
5.6.40.0070.24720.35
5.6.30.0070.23320.46
5.6.20.0000.23320.45
5.6.10.0100.23320.41
5.6.00.0070.24720.41
5.5.380.0030.17720.40
5.5.370.0030.22020.58
5.5.360.0070.22720.48
5.5.350.0130.17320.43
5.5.340.0100.23320.91
5.5.330.0100.20720.84
5.5.320.0100.17720.82
5.5.310.0100.22020.77
5.5.300.0070.19720.92
5.5.290.0100.18320.90
5.5.280.0100.20320.96
5.5.270.0130.22020.91
5.5.260.0100.17720.76
5.5.250.0130.23720.58
5.5.240.0070.22320.18
5.5.230.0170.23320.18
5.5.220.0130.19020.28
5.5.210.0130.24320.36
5.5.200.0130.23320.25
5.5.190.0000.25720.14
5.5.180.0070.19020.25
5.5.160.0070.26020.14
5.5.150.0100.23720.32
5.5.140.0100.16019.95
5.5.130.0100.21320.26
5.5.120.0030.21320.23
5.5.110.0100.19020.25
5.5.100.0100.23019.96
5.5.90.0000.23320.07
5.5.80.0070.22320.08
5.5.70.0070.23020.00
5.5.60.0130.22020.09
5.5.50.0130.16320.06
5.5.40.0030.25020.07
5.5.30.0070.19720.05
5.5.20.0070.21720.03
5.5.10.0130.14720.04
5.5.00.0070.18020.01
5.4.450.0200.04319.36
5.4.440.0030.04319.40
5.4.430.0030.05319.13
5.4.420.0070.05019.40
5.4.410.0130.07319.01
5.4.400.0100.08319.05
5.4.390.0070.07718.98
5.4.380.0000.04719.10
5.4.370.0070.07319.18
5.4.360.0100.05318.89
5.4.350.0070.07719.07
5.4.340.0070.07318.95
5.4.320.0130.07018.95
5.4.310.0130.07019.22
5.4.300.0070.07318.98
5.4.290.0070.05719.09
5.4.280.0070.03318.98
5.4.270.0070.05018.75
5.4.260.0100.07719.11
5.4.250.0030.07318.78
5.4.240.0130.07018.82
5.4.230.0030.08019.13
5.4.220.0030.03718.89
5.4.210.0030.07719.04
5.4.200.0030.04019.13
5.4.190.0100.07719.04
5.4.180.0070.06318.89
5.4.170.0030.05319.01
5.4.160.0100.06319.04
5.4.150.0130.06719.13
5.4.140.0130.06016.34
5.4.130.0000.04316.25
5.4.120.0030.04016.25
5.4.110.0030.03316.44
5.4.100.0100.04016.21
5.4.90.0000.04316.42
5.4.80.0000.05716.30
5.4.70.0130.05016.39
5.4.60.0170.05316.45
5.4.50.0130.02716.31
5.4.40.0030.03716.35
5.4.30.0100.02716.30
5.4.20.0130.06716.40
5.4.10.0030.05016.30
5.4.00.0100.03015.80
5.3.290.0070.07314.66
5.3.280.0070.03714.56
5.3.270.0070.07714.46
5.3.260.0070.07714.56
5.3.250.0070.05714.57
5.3.240.0000.08014.52
5.3.230.0000.03714.54
5.3.220.0070.06314.55
5.3.210.0070.04714.53
5.3.200.0070.06014.39
5.3.190.0000.08014.57
5.3.180.0100.06314.52
5.3.170.0000.03714.42
5.3.160.0070.06014.48
5.3.150.0070.05014.50
5.3.140.0000.04014.38
5.3.130.0030.07314.49
5.3.120.0000.08014.54
5.3.110.0070.05714.40
5.3.100.0070.03313.86
5.3.90.0000.04314.02
5.3.80.0030.03713.87
5.3.70.0130.02713.93
5.3.60.0030.06013.98
5.3.50.0070.04013.95
5.3.40.0170.06713.91
5.3.30.0070.06313.86
5.3.20.0000.04013.45
5.3.10.0030.03713.64
5.3.00.0000.05713.58
5.2.170.0070.05712.85
5.2.160.0070.04712.85
5.2.150.0030.04012.85
5.2.140.0030.06012.85
5.2.130.0070.04312.85
5.2.120.0030.02712.85
5.2.110.0000.04312.85
5.2.100.0030.06012.85
5.2.90.0000.03012.85
5.2.80.0000.03012.85
5.2.70.0030.06312.85
5.2.60.0100.05012.85
5.2.50.0070.05712.85
5.2.40.0070.04312.85
5.2.30.0030.06012.85
5.2.20.0130.02012.85
5.2.10.0070.05012.85
5.2.00.0100.04312.85
5.1.60.0100.03012.85
5.1.50.0000.03712.85
5.1.40.0030.02312.85
5.1.30.0030.04712.85
5.1.20.0070.05312.85
5.1.10.0030.05712.85
5.1.00.0000.05712.85
5.0.50.0030.04712.85
5.0.40.0030.03012.85
5.0.30.0030.06712.85
5.0.20.0030.04012.85
5.0.10.0000.02712.85
5.0.00.0000.03312.85
4.4.90.0000.03312.85
4.4.80.0000.02312.85
4.4.70.0030.02712.85
4.4.60.0100.02012.85
4.4.50.0070.01012.85
4.4.40.0000.02712.85
4.4.30.0000.03712.85
4.4.20.0000.03012.85
4.4.10.0000.02312.85
4.4.00.0100.04012.85
4.3.110.0030.02712.85
4.3.100.0000.02012.85
4.3.90.0000.02712.85
4.3.80.0000.03712.85
4.3.70.0030.01712.85
4.3.60.0000.02712.85
4.3.50.0000.03712.85
4.3.40.0030.02712.85
4.3.30.0000.02012.85
4.3.20.0000.03312.85
4.3.10.0030.02312.85
4.3.00.0030.01712.85

preferences:
39.41 ms | 401 KiB | 5 Q