3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hundred = '1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890'; $password = 'foo'; $hash = password_hash($hundred . $password, PASSWORD_BCRYPT); $result = password_verify($hundred . 'BAR', $hash); var_dump($result); $result = password_verify($hundred . 'QUZ', $hash); var_dump($result); $result = password_verify($hundred . 'fuz', $hash); var_dump($result);

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.3.10.0130.25416.05
7.3.00.0170.25916.52
7.2.130.0130.25516.45
7.2.120.0070.25916.68
7.2.110.0120.25916.31
7.2.100.0170.25116.43
7.2.90.0130.26016.66
7.2.80.0030.26016.50
7.2.70.0170.24916.30
7.2.60.0070.26016.50
7.2.50.0130.25216.36
7.2.40.0100.25416.29
7.2.30.0170.25316.80
7.2.20.0100.25116.53
7.2.10.0100.25216.45
7.2.00.0100.25118.14
7.1.250.0190.24815.27
7.1.100.0000.26118.32
7.1.70.0030.29716.91
7.1.60.0070.24917.31
7.1.50.0100.32916.98
7.1.00.0070.35022.36
7.0.200.0030.31616.74
7.0.140.0000.26321.98
7.0.60.0000.28719.93
7.0.50.0100.30317.87
7.0.40.0070.29720.02
7.0.30.0330.33720.17
7.0.20.0230.31720.13
7.0.10.0100.34720.21
7.0.00.0030.30720.33
5.6.280.0000.35721.12
5.6.210.0130.34020.64
5.6.200.0030.28718.11
5.6.190.0100.30320.60
5.6.180.0200.28720.60
5.6.170.0300.33720.45
5.6.160.0100.34720.52
5.6.150.0070.33718.15
5.6.140.0100.28318.16
5.6.130.0070.34318.07
5.6.120.0030.35320.98
5.6.110.0070.30321.02
5.6.100.0000.29021.04
5.6.90.0070.34321.09
5.6.80.0030.34720.28
5.5.350.3900.28720.40
5.5.340.0170.33717.98
5.5.330.0030.30720.20
5.5.320.0500.32320.32
5.5.310.0330.29720.32
5.5.300.0070.28017.97
5.5.290.0030.33318.01
5.5.280.0000.29020.72
5.5.270.0070.29320.84
5.5.260.0100.30320.95
5.5.250.0130.33720.77
5.5.240.0070.34020.18
5.4.450.0600.06719.56
5.4.440.0630.06319.61
5.4.430.0100.05719.46
5.4.420.0070.06019.35
5.4.410.0070.06019.38
5.4.400.0070.05319.23
5.4.390.0200.05318.65
5.4.380.0170.05718.66
5.4.370.0270.05018.68
5.4.360.0130.05718.65
5.4.350.0200.05318.63
5.4.340.0270.04718.65
5.4.320.0270.05018.48
5.4.310.0100.06018.55
5.4.300.0230.04718.68
5.4.290.0270.04318.69
5.4.280.0230.05018.68
5.4.270.0200.05018.54
5.4.260.0270.05318.65
5.4.250.0200.05318.59
5.4.240.0170.05718.73
5.4.230.0230.04718.67
5.4.220.0230.05018.42
5.4.210.0170.05318.45
5.4.200.0230.05016.59
5.4.190.0230.04718.48
5.4.180.0200.05318.64
5.4.170.0070.06318.63
5.4.160.0270.04318.66
5.4.150.0230.05718.50
5.4.140.0300.04716.29
5.4.130.0230.04016.03
5.4.120.0200.06316.21
5.4.110.0200.04716.09
5.4.100.0200.05016.12
5.4.90.0200.05716.27
5.4.80.0300.04715.99
5.4.70.0170.05315.98
5.4.60.0070.06316.16
5.4.50.0130.05316.20
5.4.40.0230.04716.20
5.4.30.0170.05716.15
5.4.20.0170.05016.23
5.4.10.0200.04716.18
5.4.00.0130.05015.55
5.3.290.0170.05314.71
5.3.280.0100.05714.64
5.3.270.0170.05714.48
5.3.260.0100.07014.70
5.3.250.0270.04314.56
5.3.240.0370.03314.47
5.3.230.0100.06014.48
5.3.220.0100.06014.57
5.3.210.0200.05314.47
5.3.200.0170.07014.44
5.3.190.0200.05714.57
5.3.180.0270.04714.52
5.3.170.0270.05714.57
5.3.160.0200.05714.57
5.3.150.0270.05014.57
5.3.140.0300.04714.46
5.3.130.0230.05314.45
5.3.120.0200.05714.50
5.3.110.0270.05014.64
5.3.100.0230.06013.99
5.3.90.0200.05014.07
5.3.80.0270.04313.90
5.3.70.0230.04713.89
5.3.60.0200.05013.98
5.3.50.0200.04313.85
5.3.40.0130.05314.00
5.3.30.0200.04713.80
5.3.20.0230.04713.76
5.3.10.0130.05313.52
5.3.00.0130.05313.53
5.2.170.0070.05011.26
5.2.160.0170.04011.18
5.2.150.0170.04011.05
5.2.140.0170.04011.08
5.2.130.0130.04711.25
5.2.120.0200.04311.21
5.2.110.0130.04311.03
5.2.100.0170.04011.23
5.2.90.0130.04311.03
5.2.80.0170.04011.13
5.2.70.0200.03311.00
5.2.60.0130.05010.95
5.2.50.0170.04011.15
5.2.40.0030.04710.94
5.2.30.0130.04010.98
5.2.20.0100.04310.97
5.2.10.0130.04010.84
5.2.00.0100.04310.66
5.1.60.0130.03010.02
5.1.50.0070.0379.96
5.1.40.0130.03310.00
5.1.30.0170.03310.39
5.1.20.0170.04310.34
5.1.10.0070.04310.04
5.1.00.0100.03710.08
5.0.50.0070.0308.59
5.0.40.0100.0278.45
5.0.30.0030.0608.30
5.0.20.0070.0278.15
5.0.10.0070.0308.23
5.0.00.0100.0438.17
4.4.90.0000.0275.84
4.4.80.0100.0175.79
4.4.70.0030.0235.87
4.4.60.0100.0175.87
4.4.50.0030.0235.86
4.4.40.0070.0335.79
4.4.30.0130.0135.89
4.4.20.0100.0205.90
4.4.10.0100.0205.93
4.4.00.0030.0435.88
4.3.110.0100.0205.81
4.3.100.0030.0235.79
4.3.90.0100.0175.77
4.3.80.0070.0405.80
4.3.70.0070.0205.74
4.3.60.0130.0175.79
4.3.50.0030.0235.77
4.3.40.0070.0335.77
4.3.30.0030.0234.64
4.3.20.0070.0204.49
4.3.10.0000.0234.47
4.3.00.0100.0208.35

preferences:
31.8 ms | 401 KiB | 5 Q