3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomPassword = base64_encode(hash_hmac('sha256', 'example password', openssl_random_pseudo_bytes(32))); $hash = password_hash($randomPassword, PASSWORD_DEFAULT, ['cost' => 12]); var_dump([ $randomPassword, $hash ]); if (password_verify($randomPassword, $hash)) { var_dump(['status' => 'success']); } else { echo 'I can\'t let you do that, Dave!', "\n"; exit(1); }

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.0130.00614.81
7.3.120.0060.00914.99
7.3.110.0110.00714.59
7.3.100.0040.00714.91
7.3.90.0030.01314.75
7.3.80.0090.00615.03
7.3.70.0100.00014.87
7.3.60.0080.00814.89
7.3.50.0030.00714.98
7.3.40.0060.01314.72
7.3.30.0040.01414.53
7.3.20.0080.00316.70
7.3.10.0060.00616.64
7.3.00.0060.00616.60
7.2.250.0070.01114.73
7.2.240.0040.01414.73
7.2.230.0060.01014.57
7.2.220.0110.00714.72
7.2.210.0070.00714.78
7.2.200.0060.00315.00
7.2.190.0040.01114.73
7.2.180.0030.00714.98
7.2.170.0100.00914.91
7.1.330.0070.00715.31
7.1.320.0060.00615.87
7.1.310.0070.00715.61
7.1.300.0070.00715.71
7.1.290.0000.01215.48
7.1.280.0060.00815.61
7.1.270.0120.00615.40
7.1.260.0040.00815.45
7.1.70.0000.49017.31
7.1.60.0070.52417.38
7.1.50.0130.52617.17
7.1.40.0000.49416.55
7.1.30.0030.49116.80
7.1.20.0100.47016.59
7.1.10.0000.49216.58
7.1.00.0030.48716.61
7.0.200.0000.48316.59
7.0.190.0030.48916.75
7.0.180.0030.48416.37
7.0.170.0000.48616.14
7.0.160.0030.51016.18
7.0.150.0070.50916.19
7.0.140.0030.48316.24
7.0.130.0030.48416.64
7.0.120.0030.52016.71
7.0.110.0070.53316.43
7.0.100.0070.54216.48
7.0.90.0030.55516.48
7.0.80.0030.53816.36
7.0.70.0000.47716.25
7.0.60.0000.48516.22
7.0.50.0030.47916.35
7.0.40.0030.48615.06
7.0.30.0030.48415.06
7.0.20.0400.49715.06
7.0.10.0030.48115.06
7.0.00.0030.47915.06
5.6.300.0070.55420.82
5.6.290.0030.51020.60
5.6.280.0100.55021.10
5.6.270.0000.53420.86
5.6.260.0070.59320.89
5.6.250.0070.52920.99
5.6.240.0030.52620.91
5.6.230.0030.55220.89
5.6.220.0030.57720.93
5.6.210.0100.50721.05
5.6.200.0070.51020.82
5.6.190.0070.57320.84
5.6.180.0670.53021.02
5.6.170.0100.51121.07
5.6.160.0030.50920.82
5.6.150.0030.52121.07
5.6.140.0070.51620.81
5.6.130.0070.51920.75
5.6.120.0000.61820.85
5.6.110.0100.51320.95
5.6.100.0000.51720.81
5.6.90.0030.51120.78
5.6.80.0100.55820.24
5.6.70.0030.53520.36
5.6.60.0030.51920.16
5.6.50.0030.52120.40
5.6.40.0070.50520.29
5.6.30.0100.51920.21
5.6.20.0000.57220.18
5.6.10.0030.52520.31
5.6.00.0000.52020.29
5.5.380.1230.51617.63
5.5.370.0000.53017.50
5.5.360.0030.51817.55
5.5.350.0000.52017.49
5.5.340.0100.51517.86
5.5.330.0100.51818.13
5.5.320.0000.52318.13
5.5.310.0470.53218.07
5.5.300.0100.52218.04
5.5.290.0000.52318.14
5.5.280.0030.51917.84
5.5.270.0070.52918.03
5.5.260.0070.52018.02
5.5.250.0030.59517.84
5.5.240.0070.52217.16
5.5.230.0530.51817.38
5.5.220.0000.52617.46
5.5.210.0070.51017.38
5.5.200.0070.52017.16
5.5.190.0000.53517.44
5.5.180.0000.55817.47
5.5.160.0070.58617.44
5.5.150.0000.52117.44
5.5.140.0030.56217.18
5.5.130.0000.54417.11
5.5.120.0030.56817.38
5.5.110.0130.59417.43
5.5.100.0100.52017.34
5.5.90.0030.52017.27
5.5.80.0000.51817.29
5.5.70.0000.51617.36
5.5.60.0000.51817.00
5.5.50.0030.55017.33
5.5.40.0070.51317.27
5.5.30.0070.52317.27
5.5.20.0070.52717.32
5.5.10.0070.53317.30
5.5.00.0070.51017.36
5.4.450.0070.05719.40
5.4.440.0030.03819.46
5.4.430.0000.04719.34
5.4.420.0060.03519.46
5.4.410.0060.03919.32
5.4.400.0070.08019.07
5.4.390.0030.04319.04
5.4.380.0030.04119.16
5.4.370.0030.03919.02
5.4.360.0030.03819.04
5.4.350.0030.03619.01
5.4.340.0030.04218.92
5.4.320.0070.03519.17
5.4.310.0030.03819.07
5.4.300.0070.03718.97
5.4.290.0060.03619.05
5.4.280.0060.03518.89
5.4.270.0000.03919.13
5.4.260.0000.05318.93
5.4.250.0030.07419.06
5.4.240.0030.04019.04
5.4.230.0070.04419.13
5.4.220.0030.04118.91
5.4.210.0030.04518.87
5.4.200.0060.03818.89
5.4.190.0030.05319.19
5.4.180.0070.07419.18
5.4.170.0000.04019.13
5.4.160.0030.04018.89
5.4.150.0000.04119.12
5.4.140.0000.03916.61
5.4.130.0030.03616.36
5.4.120.0070.03316.30
5.4.110.0090.05416.68
5.4.100.0030.04216.69
5.4.90.0100.03316.63
5.4.80.0070.03416.60
5.4.70.0040.03516.57
5.4.60.0030.03716.66
5.4.50.0000.03816.41
5.4.40.0100.06716.67
5.4.30.0130.02916.54
5.4.20.0060.03216.43
5.4.10.0030.03716.46
5.4.00.0030.03615.91
5.3.290.0070.05015.06
5.3.280.0000.04115.06
5.3.270.0030.03615.06
5.3.260.0030.04015.06
5.3.250.0000.03915.06
5.3.240.0000.03815.06
5.3.230.0000.05915.06
5.3.220.0000.05215.06
5.3.210.0100.07115.06
5.3.200.0000.04315.06
5.3.190.0030.04115.06
5.3.180.0070.04115.06
5.3.170.0000.04015.06
5.3.160.0030.03715.06
5.3.150.0000.04215.06
5.3.140.0030.03615.06
5.3.130.0040.07115.06
5.3.120.0060.05615.06
5.3.110.0030.04015.06
5.3.100.0000.04715.06
5.3.90.0000.04115.06
5.3.80.0030.06915.06
5.3.70.0070.04315.06
5.3.60.0100.03315.06
5.3.50.0000.03815.06
5.3.40.0030.03615.06
5.3.30.0000.07715.06
5.3.20.0000.04015.06
5.3.10.0000.03815.06
5.3.00.0070.03015.06
5.2.170.0030.03015.06
5.2.160.0030.02915.06
5.2.150.0000.04215.06
5.2.140.0070.02615.06
5.2.130.0030.02715.06
5.2.120.0000.03215.06
5.2.110.0030.02915.06
5.2.100.0000.03015.06
5.2.90.0030.03315.06
5.2.80.0030.03115.06
5.2.70.0070.03015.06
5.2.60.0000.03015.06
5.2.50.0100.02715.06
5.2.40.0030.02815.06
5.2.30.0030.02915.06
5.2.20.0110.02215.06
5.2.10.0000.03215.06
5.2.00.0070.02615.06
5.1.60.0000.02915.06
5.1.50.0000.02815.06
5.1.40.0030.02615.06
5.1.30.0030.02615.06
5.1.20.0000.03015.06
5.1.10.0000.02815.06
5.1.00.0030.02715.06
5.0.50.0030.02015.06
5.0.40.0000.02115.06
5.0.30.0000.03115.06
5.0.20.0030.01915.06
5.0.10.0000.02315.06
5.0.00.0000.03115.06
4.4.90.0030.01515.06
4.4.80.0110.01115.06
4.4.70.0000.01715.06
4.4.60.0000.01815.06
4.4.50.0030.01415.06
4.4.40.0000.02715.06
4.4.30.0030.01315.06
4.4.20.0030.01615.06
4.4.10.0000.02315.06
4.4.00.0000.03015.06
4.3.110.0030.01415.06
4.3.100.0000.03015.06
4.3.90.0000.02115.06
4.3.80.0000.02515.06
4.3.70.0000.01615.06
4.3.60.0000.01615.06
4.3.50.0030.01315.06
4.3.40.0030.02215.06
4.3.30.0000.01715.06
4.3.20.0000.03815.06
4.3.10.0030.02315.06
4.3.00.0030.03415.06

preferences:
38.2 ms | 400 KiB | 5 Q