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); echo ' '; $hash575 = "2y$10$7g0dITY7XbtoejJ9edgpi.ZpnBCNR1apCA94AmDT58yDtXOVzzG/6"; $verified575 = password_verify('mypass', $hash575); var_dump($verified575); echo ' ';

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.0100.13014.85
7.3.120.0070.13814.98
7.3.110.0100.13614.64
7.3.100.0130.12214.44
7.3.90.0030.13614.66
7.3.80.0100.13114.89
7.3.70.0030.13314.83
7.3.60.0100.12714.45
7.3.50.0030.13614.87
7.3.40.0060.12414.60
7.3.30.0000.13814.52
7.3.20.0000.13716.52
7.3.10.0100.12416.70
7.3.00.0050.13316.67
7.2.250.0130.13015.14
7.2.240.0100.13315.00
7.2.230.0030.13314.86
7.2.220.0100.13314.55
7.2.210.0070.13814.78
7.2.200.0030.12915.14
7.2.190.0070.13314.65
7.2.180.0100.13014.76
7.2.170.0030.12814.71
7.2.160.0000.13614.75
7.2.150.0070.13017.10
7.2.140.0030.14017.07
7.2.130.0070.13916.78
7.2.120.0070.12916.71
7.2.110.0060.13016.71
7.2.100.0030.13016.85
7.2.90.0070.12916.90
7.2.80.0020.13616.90
7.2.70.0100.13416.87
7.2.60.0060.13316.82
7.2.50.0070.13016.89
7.2.40.0080.12716.87
7.2.30.0050.13216.85
7.2.20.0030.13116.82
7.2.10.0030.13216.99
7.2.00.0090.12817.77
7.1.330.0070.13615.88
7.1.320.0100.13415.68
7.1.310.0100.12616.11
7.1.300.0100.12915.82
7.1.290.0070.13015.85
7.1.280.0130.12515.82
7.1.270.0070.13415.78
7.1.260.0070.13815.86
7.1.250.0050.12815.87
7.1.240.0030.13415.72
7.1.230.0070.13515.87
7.1.220.0070.12815.65
7.1.210.0070.12215.70
7.1.200.0030.13415.83
7.1.190.0070.14015.75
7.1.180.0000.13515.68
7.1.170.0030.12615.87
7.1.160.0000.13615.88
7.1.150.0100.12815.71
7.1.140.0030.13815.79
7.1.130.0030.12915.85
7.1.120.0000.13315.89
7.1.110.0000.13215.52
7.1.100.0070.12916.80
7.1.90.0030.13215.88
7.1.80.0100.12815.95
7.1.70.0070.12716.44
7.1.60.0070.15817.64
7.1.50.0050.12516.31
7.1.40.0000.14015.56
7.1.30.0030.13115.77
7.1.20.0100.13215.78
7.1.10.0030.13515.65
7.1.00.0080.18018.97
7.0.330.0000.13415.26
7.0.320.0000.12615.38
7.0.310.0060.12315.57
7.0.300.0100.12315.40
7.0.290.0070.12715.19
7.0.280.0000.13315.29
7.0.270.0000.12915.15
7.0.260.0030.13015.45
7.0.250.0030.13315.38
7.0.240.0030.12615.57
7.0.230.0000.13115.33
7.0.220.0070.12515.36
7.0.210.0100.12615.47
7.0.200.0050.12115.99
7.0.190.0030.13615.27
7.0.180.0070.13115.44
7.0.170.0070.12915.24
7.0.160.0000.12715.46
7.0.150.0000.13115.55
7.0.140.0030.13215.68
7.0.130.0070.12515.54
7.0.120.0070.12115.43
7.0.110.0030.13415.43
7.0.100.0070.13315.60
7.0.90.0000.13915.34
7.0.80.0030.13115.48
7.0.70.0030.13115.61
7.0.60.0020.18117.55
7.0.50.0030.14316.71
7.0.40.0100.15816.72
7.0.30.0200.17616.92
7.0.20.0150.16416.81
7.0.10.0130.16916.89
7.0.00.0030.16716.93
5.6.400.0030.13014.25
5.6.390.0100.12614.59
5.6.380.0070.13014.00
5.6.370.0070.13013.84
5.6.360.0070.13414.54
5.6.350.0000.13214.78
5.6.340.0000.13214.11
5.6.330.0070.12514.60
5.6.320.0030.12514.17
5.6.310.0000.13414.73
5.6.300.0100.12314.38
5.6.290.0070.12814.73
5.6.280.0020.14017.58
5.6.270.0100.12014.63
5.6.260.0100.12614.03
5.6.250.0100.13114.47
5.6.240.0030.14014.49
5.6.230.0000.13914.55
5.6.220.0100.12514.10
5.6.210.0050.16317.58
5.6.200.0100.17516.29
5.6.190.0050.15017.47
5.6.180.0150.17117.32
5.6.170.0130.17117.46
5.6.160.0100.17317.56
5.6.150.0100.16716.17
5.6.140.0070.18116.30
5.6.130.0070.17516.23
5.6.120.0050.15317.66
5.6.110.0070.17417.68
5.6.100.0150.16117.68
5.6.90.0070.17917.73
5.6.80.0130.16517.49
5.6.70.0120.14617.23
5.6.60.0100.12314.64
5.6.50.0070.12914.18
5.6.40.0100.12013.91
5.6.30.0100.12514.45
5.6.20.0000.12914.00
5.6.10.0030.13114.19
5.6.00.0100.12514.48
5.5.380.0000.13314.45
5.5.370.0100.12114.40
5.5.360.0030.13414.28
5.5.350.0020.14017.34
5.5.340.0050.17416.14
5.5.330.0030.17217.32
5.5.320.0000.16217.18
5.5.310.0100.17317.27
5.5.300.0050.17516.10
5.5.290.0020.17716.09
5.5.280.0100.15717.60
5.5.270.0020.17017.50
5.5.260.0080.15417.47
5.5.250.0000.15517.36
5.5.240.0050.14317.26
5.5.230.0070.12614.37
5.5.220.0070.13014.24
5.5.210.0030.12714.31
5.5.200.0030.12614.21
5.5.190.0030.13414.39
5.5.180.0030.13514.08
5.5.170.0100.12714.11
5.5.160.0000.13614.32
5.5.150.0030.12414.31
5.5.140.0030.12814.39
5.5.130.0070.13114.33
5.5.120.0070.12814.25
5.5.110.0000.13414.08
5.5.100.0000.13013.82
5.5.90.0100.12914.02
5.5.80.0000.12914.42
5.5.70.0030.13414.05
5.5.60.0130.12114.31
5.5.50.0000.12914.06
5.5.40.0070.12914.02
5.5.30.0000.12914.02
5.5.20.0000.12614.23
5.5.10.0070.12914.18
5.5.00.0070.13014.00
5.4.450.0470.03615.06
5.4.440.0480.02915.27
5.4.430.0450.03615.30
5.4.420.0380.03015.07
5.4.410.0360.02815.28
5.4.400.0430.02615.16
5.4.390.0440.02815.18
5.4.380.0330.02915.08
5.4.370.0420.02715.14
5.4.360.0400.03015.18
5.4.350.0380.02615.01
5.4.340.0380.02815.09
5.4.330.0000.00511.05
5.4.320.0330.03415.09
5.4.310.0320.03014.98
5.4.300.0370.02715.08
5.4.290.0310.03115.02
5.4.280.0390.04414.97
5.4.270.0370.03515.18
5.4.260.0400.03015.05
5.4.250.0450.03015.06
5.4.240.0500.03314.91
5.4.230.0390.03415.18
5.4.220.0480.03415.10
5.4.210.0400.03615.18
5.4.200.0460.02415.10
5.4.190.0430.02915.02
5.4.180.0430.02815.12
5.4.170.0450.03215.14
5.4.160.0400.02614.92
5.4.150.0430.02715.13
5.4.140.0380.03213.72
5.4.130.0300.03013.71
5.4.120.0450.03313.66
5.4.110.0320.03413.77
5.4.100.0500.02913.72
5.4.90.0400.03013.67
5.4.80.0420.03213.76
5.4.70.0450.03313.78
5.4.60.0320.03013.65
5.4.50.0390.02313.74
5.4.40.0510.02413.67
5.4.30.0490.03213.63
5.4.20.0470.02313.79
5.4.10.0540.02613.75
5.4.00.0430.03013.50

preferences:
37.64 ms | 401 KiB | 5 Q