3v4l.org

run code in 300+ PHP versions simultaneously
<?php // use this to create the hash then delete it. //echo password_hash("thepassword", PASSWORD_DEFAULT); // paste hash here $passwordKey = '$2y$10$j33UPA7gNxSOBsXQcyquLOZRuO6X8k8hZOb1RA79iN8gLlqp9eIPO'; $userInputGood = "thepassword"; $userInputBad = "notthepassword"; if (password_verify($userInputGood, $passwordKey)) echo "correct "; else echo "incorrect"; if (password_verify($userInputBad, $passwordKey)) echo "correct "; else echo "incorrect";

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)
8.5.10.0050.11920.13
8.5.00.0070.13919.86
8.4.150.0010.00114.05
8.4.140.0120.14017.26
8.4.130.0090.12917.46
8.4.120.0040.10824.15
8.4.110.0100.13018.85
8.4.100.0130.11617.59
8.4.90.0060.10417.73
8.4.80.0090.11517.98
8.4.70.0070.10317.76
8.4.60.0110.12120.40
8.4.50.0100.14119.49
8.4.40.0100.09817.60
8.4.30.0130.13619.45
8.4.20.0130.12617.63
8.4.10.0100.12717.42
8.3.280.0120.14818.23
8.3.270.0120.14816.63
8.3.260.0090.10816.49
8.3.250.0060.10318.89
8.3.240.0090.13016.57
8.3.230.0140.11116.54
8.3.220.0100.11717.36
8.3.210.0040.10716.66
8.3.200.0030.10716.36
8.3.190.0090.11517.00
8.3.180.0040.10916.56
8.3.170.0030.12318.88
8.3.160.0100.11718.10
8.3.150.0070.12018.86
8.3.140.0140.14216.65
8.3.130.0070.10218.47
8.3.120.0130.12818.77
8.3.110.0070.10220.94
8.3.100.0070.10324.06
8.3.90.0070.11326.77
8.3.80.0000.12518.43
8.3.70.0130.19218.11
8.3.60.0170.19918.30
8.3.50.0120.21321.91
8.3.40.0000.20018.79
8.3.30.0030.22519.04
8.3.20.0070.10220.24
8.3.10.0030.14221.68
8.3.00.0100.12719.06
8.2.290.0080.13618.67
8.2.280.0030.10820.05
8.2.270.0130.11417.30
8.2.260.0130.11818.82
8.2.250.0100.09818.16
8.2.240.0070.10219.05
8.2.230.0030.10722.58
8.2.220.0100.10337.54
8.2.210.0100.12926.77
8.2.200.0070.11716.63
8.2.190.0270.20216.63
8.2.180.0130.18818.16
8.2.170.0100.19722.96
8.2.160.0070.20420.43
8.2.150.0070.10324.18
8.2.140.0030.10824.66
8.2.130.0070.10226.16
8.2.120.0070.10122.26
8.2.110.0000.11021.93
8.2.100.0000.12419.39
8.2.90.0000.12217.63
8.2.80.0070.11417.97
8.2.70.0100.11117.88
8.2.60.0030.11718.03
8.2.50.0070.11418.10
8.2.40.0000.12019.09
8.2.30.0030.11620.64
8.2.20.0030.11717.56
8.2.10.0000.12017.90
8.2.00.0100.11017.61
8.1.330.0050.10615.85
8.1.320.0090.13815.89
8.1.310.0100.12518.55
8.1.300.0100.09918.70
8.1.290.0030.12018.88
8.1.280.0130.19525.92
8.1.270.0000.11318.88
8.1.260.0070.10226.35
8.1.250.0030.10628.09
8.1.240.0030.10723.97
8.1.230.0030.12419.10
8.1.220.0070.11517.76
8.1.210.0030.11818.77
8.1.200.0070.11617.21
8.1.190.0030.11817.23
8.1.180.0070.11418.10
8.1.170.0030.11718.52
8.1.160.0000.12018.80
8.1.150.0070.11818.88
8.1.140.0000.12017.49
8.1.130.0030.11617.87
8.1.120.0000.12017.41
8.1.110.0070.12617.40
8.1.100.0030.11717.42
8.1.90.0070.11317.41
8.1.80.0000.12017.27
8.1.70.0070.11317.45
8.1.60.0070.11517.43
8.1.50.0030.11817.45
8.1.40.0030.11817.32
8.1.30.0100.11817.51
8.1.20.0030.11717.54
8.1.10.0060.11517.55
8.1.00.0070.11317.43
8.0.300.0000.12118.77
8.0.290.0070.12416.75
8.0.280.0070.11318.40
8.0.270.0030.11817.27
8.0.260.0030.11617.25
8.0.250.0000.11916.76
8.0.240.0000.12716.80
8.0.230.0000.12016.90
8.0.220.0030.12916.77
8.0.210.0000.12116.85
8.0.200.0070.11516.90
8.0.190.0000.12016.91
8.0.180.0030.11616.74
8.0.170.0000.12116.74
8.0.160.0070.11416.81
8.0.150.0070.13316.79
8.0.140.0030.11716.82
8.0.130.0070.11313.26
8.0.120.0000.12016.68
8.0.110.0000.12016.81
8.0.100.0030.12016.83
8.0.90.0070.12616.71
8.0.80.0100.17816.84
8.0.70.0000.12116.77
8.0.60.0030.11616.84
8.0.50.0070.11316.69
8.0.30.0110.17316.92
8.0.20.0090.17217.40
8.0.10.0000.12717.00
8.0.00.0130.16416.65
7.4.330.0000.11815.07
7.4.320.0030.11516.49
7.4.300.0030.11816.56
7.4.290.0030.11616.53
7.4.280.0030.11816.57
7.4.270.0030.11816.46
7.4.260.0000.12016.52
7.4.250.0000.12016.30
7.4.240.0020.12016.56
7.4.230.0000.11916.19
7.4.220.0100.19816.43
7.4.210.0100.19116.40
7.4.200.0070.11816.48
7.4.160.0130.17216.41
7.4.150.0130.16417.40
7.4.140.0080.18017.86
7.4.130.0080.17616.36
7.4.120.0090.17716.51
7.4.110.0100.17116.26
7.4.100.0070.17316.46
7.4.90.0130.16516.35
7.4.80.0100.17919.39
7.4.70.0130.16216.39
7.4.60.0100.17216.39
7.4.50.0000.11216.15
7.4.40.0160.17016.33
7.4.30.0100.18216.47
7.4.10.0100.13614.87
7.4.00.0080.13314.96
7.3.330.0070.12012.98
7.3.320.0030.11512.91
7.3.310.0070.11316.19
7.3.300.0100.11116.14
7.3.290.0100.17816.16
7.3.280.0120.18116.10
7.3.270.0100.18017.40
7.3.260.0100.16616.02
7.3.250.0110.16616.15
7.3.240.0100.16716.45
7.3.230.0160.17216.39
7.3.210.0030.17316.53
7.3.200.0070.18519.39
7.3.190.0130.16716.32
7.3.180.0100.16716.09
7.3.170.0170.17916.27
7.3.160.0090.16816.42
7.3.130.0030.14314.89
7.3.120.0070.13414.68
7.3.110.0030.14314.45
7.3.100.0070.13214.96
7.3.90.0070.13214.62
7.3.80.0100.12514.61
7.3.70.0070.13014.82
7.3.60.0070.13214.41
7.3.50.0030.13514.51
7.3.40.0070.12414.71
7.3.30.0030.13014.68
7.3.20.0030.13616.51
7.3.10.0030.13216.77
7.3.00.0100.13216.64
7.2.330.0060.17416.64
7.2.320.0060.18116.41
7.2.310.0140.16416.34
7.2.300.0160.17216.36
7.2.290.0090.17016.61
7.2.260.0100.13815.09
7.2.250.0030.14415.07
7.2.240.0070.12914.89
7.2.230.0000.14014.91
7.2.220.0030.13915.02
7.2.210.0070.12614.54
7.2.200.0070.13215.03
7.2.190.0030.13614.69
7.2.180.0030.14114.78
7.2.170.0070.12214.56
7.2.160.0070.13114.68
7.2.150.0130.12416.94
7.2.140.0070.12417.00
7.2.130.0070.12616.84
7.2.120.0030.13816.74
7.2.110.0070.12816.99
7.2.100.0030.13616.70
7.2.90.0070.12516.84
7.2.80.0000.13816.55
7.2.70.0030.13516.79
7.2.60.0070.12716.58
7.2.50.0030.13116.67
7.2.40.0070.13016.91
7.2.30.0070.13116.81
7.2.20.0070.13216.75
7.2.10.0070.12916.84
7.2.00.0030.13417.96
7.1.330.0030.13415.77
7.1.320.0030.13315.66
7.1.310.0030.13115.81
7.1.300.0030.13615.75
7.1.290.0070.12915.56
7.1.280.0000.14115.72
7.1.270.0070.12515.76
7.1.260.0000.13415.63
7.1.250.0070.13015.41
7.1.240.0030.13815.62
7.1.230.0070.12415.65
7.1.220.0070.13315.34
7.1.210.0030.12915.64
7.1.200.0080.12915.70
7.1.190.0000.13615.64
7.1.180.0030.12615.82
7.1.170.0030.12215.45
7.1.160.0030.13015.48
7.1.150.0030.13015.89
7.1.140.0070.13215.66
7.1.130.0100.12215.48
7.1.120.0030.13215.54
7.1.110.0100.11715.76
7.1.100.0020.13416.81
7.1.90.0100.12515.94
7.1.80.0070.13715.91
7.1.70.0070.13116.46
7.1.60.0050.12716.42
7.1.50.0050.13816.21
7.1.40.0100.12415.94
7.1.30.0030.12916.12
7.1.20.0030.12916.05
7.1.10.0020.13016.13
7.1.00.0020.12716.24
7.0.330.0030.13415.00
7.0.320.0030.13215.32
7.0.310.0030.13215.40
7.0.300.0030.13115.08
7.0.290.0000.13415.14
7.0.280.0070.12415.30
7.0.270.0030.13415.27
7.0.260.0070.12115.33
7.0.250.0070.12015.43
7.0.240.0070.13215.48
7.0.230.0070.12315.38
7.0.220.0030.12715.03
7.0.210.0070.13415.02
7.0.200.0020.14915.96
7.0.190.0030.12916.01
7.0.180.0030.16215.76
7.0.170.0030.13015.92
7.0.160.0280.13015.80
7.0.150.0030.13015.74
7.0.140.0030.12815.81
7.0.130.0030.12716.05
7.0.120.0050.12615.88
7.0.110.0020.13215.93
7.0.100.0030.12715.81
7.0.90.0050.12815.90
7.0.80.0100.12715.77
7.0.70.0020.13215.68
7.0.60.0070.12815.78
7.0.50.0030.12815.94
7.0.40.0050.12314.16
7.0.30.0020.12814.17
7.0.20.0030.12714.07
7.0.10.0020.13513.93
7.0.00.0030.13214.07
5.6.400.0000.14414.22
5.6.390.0030.12814.25
5.6.380.0000.13514.38
5.6.370.0070.12914.19
5.6.360.0070.13314.33
5.6.350.0030.12814.04
5.6.340.0030.12914.28
5.6.330.0030.13113.78
5.6.320.0030.12414.57
5.6.310.0070.12614.17
5.6.300.0000.15117.73
5.6.290.0070.14817.66
5.6.280.0420.14017.51
5.6.270.0050.14517.38
5.6.260.0030.14617.61
5.6.250.0030.14817.41
5.6.240.0030.14917.60
5.6.230.0020.15017.54
5.6.220.0050.14817.71
5.6.210.0050.15317.47
5.6.200.0250.14117.59
5.6.190.0080.14217.60
5.6.180.0070.14817.61
5.6.170.0070.18617.55
5.6.160.0000.15717.51
5.6.150.0020.14817.48
5.6.140.0030.15017.46
5.6.130.0030.14717.47
5.6.120.0050.14817.64
5.6.110.0020.15017.65
5.6.100.0080.14017.68
5.6.90.0050.14117.64
5.6.80.0080.14517.12
5.6.70.0020.14317.14
5.6.60.0030.15017.26
5.6.50.0050.14717.24
5.6.40.0050.15017.02
5.6.30.0080.17417.23
5.6.20.0070.14117.17
5.6.10.0050.15017.43
5.6.00.0050.14817.17
5.5.380.0030.15016.02
5.5.370.0020.14515.73
5.5.360.0030.15415.87
5.5.350.0030.14715.79
5.5.340.0070.14416.03
5.5.330.0030.15016.04
5.5.320.0030.17315.94
5.5.310.0080.14315.93
5.5.300.0030.14515.87
5.5.290.0070.15716.15
5.5.280.0020.15116.05
5.5.270.0030.15015.91
5.5.260.0000.15416.21
5.5.250.0070.14115.90
5.5.240.0330.14515.92
5.5.230.0050.14815.78
5.5.220.0000.15315.49
5.5.210.0020.15215.64
5.5.200.0050.14515.57
5.5.190.0050.14815.60
5.5.180.0000.14815.62
5.5.170.0000.12714.25
5.5.160.0030.14315.60
5.5.150.0180.14715.83
5.5.140.0030.14615.68
5.5.130.0070.14115.82
5.5.120.0080.13915.52
5.5.110.0070.16115.88
5.5.100.0070.14115.57
5.5.90.0050.16015.71
5.5.80.0020.14915.66
5.5.70.0000.14615.62
5.5.60.0020.14815.79
5.5.50.0030.16815.58
5.5.40.0070.16815.75
5.5.30.0080.14015.57
5.5.20.0070.14415.57
5.5.10.0050.14715.60
5.5.00.0020.14615.78
5.4.450.0060.04216.14
5.4.440.0040.02416.19
5.4.430.0020.02316.18
5.4.420.0040.02116.22
5.4.410.0040.02016.14
5.4.400.0020.02516.07
5.4.390.0050.02816.04
5.4.380.0000.02315.93
5.4.370.0040.04016.06
5.4.360.0050.02516.08
5.4.350.0090.01916.00
5.4.340.0070.02416.04
5.4.330.0000.00613.02
5.4.320.0030.02215.95
5.4.310.0020.02415.97
5.4.300.0070.01916.04
5.4.290.0030.02415.93
5.4.280.0070.03416.00
5.4.270.0020.03016.04
5.4.260.0070.01716.08
5.4.250.0040.02316.01
5.4.240.0020.02415.96
5.4.230.0030.02516.06
5.4.220.0050.03016.07
5.4.210.0050.02216.02
5.4.200.0020.02515.94
5.4.190.0080.01716.03
5.4.180.0000.02615.94
5.4.170.0060.01916.08
5.4.160.0030.02216.03
5.4.150.0020.03116.01
5.4.140.0030.02014.77
5.4.130.0030.02114.70
5.4.120.0020.02514.81
5.4.110.0050.02014.82
5.4.100.0050.01914.69
5.4.90.0030.02014.81
5.4.80.0050.01814.84
5.4.70.0000.02214.79
5.4.60.0040.02214.81
5.4.50.0020.02314.83
5.4.40.0050.02114.74
5.4.30.0050.02014.81
5.4.20.0040.02114.70
5.4.10.0050.02214.67
5.4.00.0050.02214.46

preferences:
193.21 ms | 403 KiB | 5 Q