3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option = array('cost' => 10); $hashed =password_hash('mypass', PASSWORD_BCRYPT, $option); var_dump( $hashed); $verified = password_verify('mypass', $hashed); var_dump($verified); $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.00.0070.14014.79
7.3.120.0030.13914.71
7.3.110.0120.13114.89
7.3.100.0030.13714.81
7.3.90.0050.13214.91
7.3.80.0050.13214.84
7.3.70.0020.13514.74
7.3.60.0070.12914.64
7.3.50.0070.12914.67
7.3.40.0030.12914.73
7.3.30.0080.12914.59
7.3.20.0050.12616.56
7.3.10.0070.12816.53
7.3.00.0060.12816.37
7.2.250.0070.14114.76
7.2.240.0070.13114.96
7.2.230.0050.13214.95
7.2.220.0080.13014.89
7.2.210.0030.13215.12
7.2.200.0080.12614.94
7.2.190.0100.12814.86
7.2.180.0070.12814.81
7.2.170.0050.12415.03
7.2.160.0070.13014.78
7.2.150.0050.12816.96
7.2.140.0020.13516.88
7.2.130.0070.12716.53
7.2.120.0040.13116.60
7.2.110.0100.13216.85
7.2.100.0090.13016.70
7.2.90.0080.12916.73
7.2.80.0070.12916.70
7.2.70.0110.12516.76
7.2.60.0050.13316.70
7.2.50.0100.12916.62
7.2.40.0050.13116.79
7.2.30.0040.13516.70
7.2.20.0060.13216.77
7.2.10.0080.12716.83
7.2.00.0070.12917.29
7.1.330.0120.12815.81
7.1.320.0070.13115.79
7.1.310.0080.12715.89
7.1.300.0080.12915.71
7.1.290.0100.12515.52
7.1.280.0020.13215.81
7.1.270.0080.12615.63
7.1.260.0030.13015.73
7.1.250.0040.13015.69
7.1.240.0100.12615.84
7.1.230.0030.13615.66
7.1.220.0070.12915.86
7.1.210.0070.12515.57
7.1.200.0030.13315.87
7.1.190.0030.12915.73
7.1.180.0030.12815.88
7.1.170.0030.13515.48
7.1.160.0030.13815.93
7.1.150.0030.13515.64
7.1.140.0100.12515.68
7.1.130.0070.12215.86
7.1.120.0030.12415.87
7.1.110.0070.13415.70
7.1.100.0030.12916.93
7.1.90.0030.13215.85
7.1.80.0100.12615.78
7.1.70.0050.13116.40
7.1.60.0050.16617.64
7.1.50.0050.12716.34
7.1.40.0100.12715.96
7.1.30.0100.12615.87
7.1.20.0030.13015.54
7.1.10.0070.12715.84
7.1.00.0030.18419.16
7.0.330.0070.13015.18
7.0.320.0070.12715.13
7.0.310.0030.13515.39
7.0.300.0100.12315.12
7.0.290.0000.14115.56
7.0.280.0030.12815.35
7.0.270.0100.12915.36
7.0.260.0130.13515.49
7.0.250.0070.13015.39
7.0.240.0000.13215.31
7.0.230.0100.12715.46
7.0.220.0030.12415.55
7.0.210.0030.13515.33
7.0.200.0030.12315.88
7.0.190.0030.13115.16
7.0.180.0000.13315.42
7.0.170.0000.14015.49
7.0.160.0030.13615.26
7.0.150.0030.12915.57
7.0.140.0070.12915.59
7.0.130.0070.12915.32
7.0.120.0070.12715.42
7.0.110.0030.13115.39
7.0.100.0030.12815.55
7.0.90.0030.12915.31
7.0.80.0030.13615.38
7.0.70.0030.12715.03
7.0.60.0100.17217.66
7.0.50.0050.17216.76
7.0.40.0020.15516.70
7.0.30.0250.16816.92
7.0.20.0150.17016.92
7.0.10.0220.15816.89
7.0.00.0080.17316.66
5.6.400.0100.12814.38
5.6.390.0070.12714.64
5.6.380.0070.12814.21
5.6.370.0100.12414.20
5.6.360.0030.12914.46
5.6.350.0030.13514.30
5.6.340.0030.13714.58
5.6.330.0030.12913.90
5.6.320.0030.13314.21
5.6.310.0070.12914.34
5.6.300.0130.12614.19
5.6.290.0070.12514.42
5.6.280.0020.13817.57
5.6.270.0030.13114.68
5.6.260.0070.12314.12
5.6.250.0100.12514.14
5.6.240.0070.13414.19
5.6.230.0070.12914.45
5.6.220.0070.13114.18
5.6.210.0070.17717.41
5.6.200.0020.16916.22
5.6.190.0080.14917.27
5.6.180.0050.16917.31
5.6.170.0170.17217.35
5.6.160.0050.17117.27
5.6.150.0070.17016.29
5.6.140.0070.15316.25
5.6.130.0080.14016.23
5.6.120.0030.18017.63
5.6.110.0130.14117.56
5.6.100.0050.16717.48
5.6.90.0100.17617.41
5.6.80.0070.17417.30
5.6.70.0050.13317.26
5.6.60.0000.13114.21
5.6.50.0070.12614.43
5.6.40.0030.13014.15
5.6.30.0070.12414.29
5.6.20.0030.13113.93
5.6.10.0100.13114.29
5.6.00.0030.13014.10
5.5.380.0030.13413.96
5.5.370.0000.13614.38
5.5.360.0070.12314.23
5.5.350.0080.14417.32
5.5.340.0050.17416.13
5.5.330.0070.18117.39
5.5.320.0050.14317.32
5.5.310.0150.14517.13
5.5.300.0050.14616.13
5.5.290.0030.16616.08
5.5.280.0080.17717.31
5.5.270.0100.14317.55
5.5.260.0030.15317.63
5.5.250.0070.17317.24
5.5.240.0050.14317.32
5.5.230.0030.13114.05
5.5.220.0030.12414.32
5.5.210.0070.13014.15
5.5.200.0070.12914.03
5.5.190.0030.13514.32
5.5.180.0030.13514.33
5.5.170.0000.13414.18
5.5.160.0030.13513.98
5.5.150.0070.12614.35
5.5.140.0000.13913.96
5.5.130.0070.12913.95
5.5.120.0000.13513.83
5.5.110.0130.12514.41
5.5.100.0100.12914.21
5.5.90.0030.13414.09
5.5.80.0030.13214.12
5.5.70.0000.13513.76
5.5.60.0070.12813.94
5.5.50.0030.13313.99
5.5.40.0030.13114.21
5.5.30.0030.13414.26
5.5.20.0070.13013.95
5.5.10.0070.12714.09
5.5.00.0070.13014.30
5.4.450.0420.03215.36
5.4.440.0470.03015.55
5.4.430.0400.03215.54
5.4.420.0500.03815.53
5.4.410.0510.04015.36
5.4.400.0360.02615.45
5.4.390.0320.03515.42
5.4.380.0370.03415.40
5.4.370.0360.02615.37
5.4.360.0380.02715.44
5.4.350.0320.03315.38
5.4.340.0370.02715.20
5.4.330.0050.00011.58
5.4.320.0410.02615.34
5.4.310.0380.02715.19
5.4.300.0330.02915.26
5.4.290.0380.03315.37
5.4.280.0390.03415.35
5.4.270.0420.03015.42
5.4.260.0460.02415.38
5.4.250.0430.03215.19
5.4.240.0470.03215.28
5.4.230.0460.02915.33
5.4.220.0400.03215.44
5.4.210.0460.03615.41
5.4.200.0460.02415.26
5.4.190.0400.02715.25
5.4.180.0470.02515.38
5.4.170.0460.02615.28
5.4.160.0350.02515.40
5.4.150.0300.03215.39
5.4.140.0320.02813.87
5.4.130.0350.02513.96
5.4.120.0330.03013.91
5.4.110.0330.02814.02
5.4.100.0400.02713.95
5.4.90.0300.02914.03
5.4.80.0500.02813.94
5.4.70.0400.02914.00
5.4.60.0450.03114.02
5.4.50.0450.04314.01
5.4.40.0530.02513.81
5.4.30.0420.03214.00
5.4.20.0430.02613.96
5.4.10.0400.02713.99
5.4.00.0380.03013.71

preferences:
39.86 ms | 401 KiB | 5 Q