3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashed =password_hash('mypass', PASSWORD_BCRYPT); echo $hashed; echo '<br/>'; $verified = password_verify('mypass', $hashed); var_dump($verified); echo '<br/>'; $hash575 = "2y$10$7g0dITY7XbtoejJ9edgpi.ZpnBCNR1apCA94AmDT58yDtXOVzzG/6"; $verified575 = password_verify('mypass', $hash575); var_dump($verified575);

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.0100.13514.72
7.4.00.0080.13914.83
7.3.130.0100.13515.07
7.3.120.0050.13814.82
7.3.110.0050.14014.78
7.3.100.0080.13414.80
7.3.90.0070.13614.78
7.3.80.0050.13114.87
7.3.70.0070.12914.74
7.3.60.0070.13014.69
7.3.50.0050.12814.72
7.3.40.0080.12314.73
7.3.30.0050.13414.81
7.3.20.0050.12516.65
7.3.10.0050.13116.69
7.3.00.0020.13716.58
7.2.260.0100.13714.79
7.2.250.0030.13815.23
7.2.240.0050.13714.93
7.2.230.0050.13414.98
7.2.220.0080.13114.83
7.2.210.0050.13115.25
7.2.200.0050.13514.93
7.2.190.0050.14014.90
7.2.180.0020.13414.93
7.2.170.0080.13015.12
7.2.160.0030.13615.04
7.2.150.0050.13316.90
7.2.140.0070.12916.88
7.2.130.0070.13616.88
7.2.120.0050.13217.02
7.2.110.0070.13017.01
7.2.100.0070.13016.91
7.2.90.0050.12916.87
7.2.80.0030.13316.73
7.2.70.0030.13016.79
7.2.60.0070.13016.79
7.2.50.0080.12816.81
7.2.40.0070.14016.74
7.2.30.0050.12916.89
7.2.20.0030.13016.83
7.2.10.0050.13016.88
7.2.00.0050.12516.98
7.1.330.0070.13515.72
7.1.320.0050.13115.86
7.1.310.0070.13016.04
7.1.300.0050.13915.61
7.1.290.0030.13015.65
7.1.280.0030.12915.83
7.1.270.0030.13215.85
7.1.260.0050.12915.80
7.1.250.0070.13415.68
7.1.240.0050.13315.86
7.1.230.0050.12915.66
7.1.220.0050.12915.84
7.1.210.0100.13115.57
7.1.200.0080.12815.74
7.1.190.0030.13315.87
7.1.180.0000.13915.93
7.1.170.0070.13915.89
7.1.160.0060.12815.90
7.1.150.0050.13515.78
7.1.140.0050.12615.73
7.1.130.0050.13115.85
7.1.120.0030.13015.74
7.1.110.0070.12815.82
7.1.100.0100.12415.89
7.1.90.0020.13115.74
7.1.80.0070.12815.85
7.1.70.0010.13616.15
7.1.60.0060.12816.23
7.1.50.0030.13916.22
7.1.40.0080.12915.68
7.1.30.0070.12715.82
7.1.20.0050.12715.79
7.1.10.0080.12515.77
7.1.00.0020.16818.15
7.0.330.0030.13415.24
7.0.320.0020.13815.30
7.0.310.0080.12715.25
7.0.300.0020.13415.25
7.0.290.0130.12315.35
7.0.280.0050.12415.34
7.0.270.0080.12315.43
7.0.260.0020.13115.38
7.0.250.0050.12515.39
7.0.240.0020.12715.46
7.0.230.0030.13015.31
7.0.220.0020.13115.48
7.0.210.0020.12815.38
7.0.200.0060.14615.98
7.0.190.0000.13615.34
7.0.180.0050.13015.37
7.0.170.0050.12515.50
7.0.160.0020.12715.24
7.0.150.0020.13015.51
7.0.140.0070.13215.44
7.0.130.0030.12815.49
7.0.120.0070.13115.55
7.0.110.0080.13515.35
7.0.100.0020.12815.37
7.0.90.0030.13115.64
7.0.80.0030.13115.39
7.0.70.0000.13315.46
7.0.60.0040.16317.02
7.0.50.0030.14616.35
7.0.40.0030.14715.69
7.0.30.0130.15115.84
7.0.20.0120.15915.72
7.0.10.0140.15815.83
7.0.00.0090.15315.71
5.6.400.0070.12714.34
5.6.390.0080.12814.24
5.6.380.0000.13714.41
5.6.370.0070.12514.50
5.6.360.0030.12914.32
5.6.350.0020.13013.94
5.6.340.0020.13114.25
5.6.330.0050.13114.28
5.6.320.0030.12914.27
5.6.310.0080.12714.20
5.6.300.0030.13114.43
5.6.290.0050.12714.13
5.6.280.0020.13516.69
5.6.270.0050.13214.27
5.6.260.0050.12814.48
5.6.250.0050.13214.19
5.6.240.0100.12314.31
5.6.230.0070.12814.04
5.6.220.0030.12914.36
5.6.210.0010.16516.38
5.6.200.0090.15415.54
5.6.190.0080.15716.40
5.6.180.0080.15816.27
5.6.170.0090.15216.40
5.6.160.0030.14116.37
5.6.150.0080.14115.56
5.6.140.0010.14115.75
5.6.130.0060.16115.69
5.6.120.0060.15316.42
5.6.110.0030.14116.49
5.6.100.0030.15516.60
5.6.90.0070.15716.48
5.6.80.0090.16116.14
5.6.70.1520.14116.11
5.6.60.0030.12814.44
5.6.50.0050.12914.16
5.6.40.0050.12714.15
5.6.30.0020.13314.22
5.6.20.0050.13314.19
5.6.10.0050.12914.04
5.6.00.0000.13414.15
5.5.380.0000.14314.13
5.5.370.0100.12614.15
5.5.360.0030.13014.27
5.5.350.0020.13416.17
5.5.340.0030.14215.40
5.5.330.0030.14416.14
5.5.320.0070.14316.24
5.5.310.0100.15116.23
5.5.300.0030.15215.58
5.5.290.0040.14815.58
5.5.280.0080.14216.56
5.5.270.0060.14116.32
5.5.260.0050.15216.24
5.5.250.0060.13816.22
5.5.240.0060.16016.09
5.5.230.0050.13314.09
5.5.220.0030.12714.17
5.5.210.0020.13014.27
5.5.200.0050.12914.17
5.5.190.0030.13314.08
5.5.180.0050.12914.07
5.5.170.0100.12614.09
5.5.160.0100.12614.03
5.5.150.0050.13214.21
5.5.140.0030.13114.03
5.5.130.0050.13314.05
5.5.120.0030.13013.82
5.5.110.0030.13614.15
5.5.100.0020.13114.07
5.5.90.0050.13413.75
5.5.80.0050.12713.93
5.5.70.0080.12614.08
5.5.60.0030.12514.09
5.5.50.0050.13314.15
5.5.40.0080.12714.06
5.5.30.0020.13414.01
5.5.20.0050.12914.04
5.5.10.0070.12413.85
5.5.00.0050.12813.84
5.4.450.0160.02614.00
5.4.440.0130.02113.95
5.4.430.0060.02214.04
5.4.420.0070.02314.03
5.4.410.0140.01513.92
5.4.400.0160.01713.86
5.4.390.0110.02113.86
5.4.380.0110.02113.80
5.4.370.0140.02013.95
5.4.360.0120.01913.92
5.4.350.0100.01913.87
5.4.340.0130.02013.88
5.4.330.0020.00911.21
5.4.320.0090.02513.90
5.4.310.0140.01813.92
5.4.300.0080.02314.00
5.4.290.0100.01914.02
5.4.280.0100.02013.96
5.4.270.0060.02213.89
5.4.260.0080.02813.95
5.4.250.0050.02313.88
5.4.240.0120.01914.00
5.4.230.0110.02213.79
5.4.220.0060.02713.76
5.4.210.0100.01813.78
5.4.200.0070.02313.80
5.4.190.0090.02113.85
5.4.180.0090.02213.93
5.4.170.0070.02113.87
5.4.160.0070.02113.95
5.4.150.0060.02113.88
5.4.140.0090.02012.95
5.4.130.0030.02212.96
5.4.120.0060.02213.05
5.4.110.0070.02013.04
5.4.100.0060.02112.99
5.4.90.0090.02012.99
5.4.80.0110.02012.91
5.4.70.0060.02412.90
5.4.60.0090.01812.96
5.4.50.0100.01613.04
5.4.40.0080.02013.03
5.4.30.0110.02013.01
5.4.20.0110.02012.97
5.4.10.0290.02013.06
5.4.00.0300.01912.89

preferences:
38.18 ms | 401 KiB | 5 Q