3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = 'FdsfDFwfdfs23C4DSF32Fs0ozkbHI8mDIUxjEqT/oJCm32Ly2Rjs5vzUSg9do0X1tE7CC0pQZg9MiSHrZVdXlMuy6VclOhPdLU5pHRKaTu/'; $salt = '25c5850100451f12'; $algo = '$6'; $password = 'test'; $cost = '$rounds=25000$'; function check_password($hash, $salt, $password){ $hash = ($algo.$cost.$salt.'$'.$hash); if($hash == crypt($password, substr($hash, 0, 33))){ //Regenerate new hash and salt for given password echo 'yes'; return true; }else{ echo 'no'; return false; } } check_password($hash, $salt, $password); ?>

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.3.60.0120.00318.56
8.3.50.0110.00418.18
8.3.40.0130.00318.71
8.3.30.0040.01118.58
8.3.20.0050.00220.20
8.3.10.0050.00323.65
8.3.00.0060.00319.56
8.2.180.0120.00316.54
8.2.170.0140.00322.96
8.2.160.0140.00020.35
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.16
8.2.110.0030.00620.52
8.2.100.0090.00318.03
8.2.90.0030.00520.45
8.2.80.0080.00017.97
8.2.70.0090.00017.79
8.2.60.0040.00418.03
8.2.50.0050.00318.19
8.2.40.0040.00420.61
8.2.30.0040.00419.31
8.2.20.0040.00418.20
8.2.10.0050.00318.32
8.2.00.0040.00418.33
8.1.280.0090.00625.92
8.1.270.0040.00423.96
8.1.260.0030.00526.35
8.1.250.0090.00028.09
8.1.240.0090.00023.92
8.1.230.0080.00321.04
8.1.220.0050.00317.90
8.1.210.0030.00619.22
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0080.00018.10
8.1.170.0040.00418.78
8.1.160.0020.00518.96
8.1.150.0040.00420.25
8.1.140.0050.00217.78
8.1.130.0030.00619.09
8.1.120.0000.00717.54
8.1.110.0050.00217.47
8.1.100.0000.00817.49
8.1.90.0040.00417.57
8.1.80.0050.00217.45
8.1.70.0030.00317.42
8.1.60.0040.00417.64
8.1.50.0000.00817.66
8.1.40.0040.00417.53
8.1.30.0040.00417.63
8.1.20.0030.00517.76
8.1.10.0080.00017.60
8.1.00.0050.00317.45
8.0.300.0040.00420.15
8.0.290.0040.00716.88
8.0.280.0050.00218.40
8.0.270.0000.00717.38
8.0.260.0040.00416.92
8.0.250.0000.00717.02
8.0.240.0030.00317.09
8.0.230.0080.00417.11
8.0.220.0040.00416.95
8.0.210.0000.00717.07
8.0.200.0040.00417.03
8.0.190.0000.00817.09
8.0.180.0040.00416.96
8.0.170.0060.00317.02
8.0.160.0000.00716.93
8.0.150.0040.00416.95
8.0.140.0000.00816.88
8.0.130.0030.00313.46
8.0.120.0000.00817.02
8.0.110.0030.00517.08
8.0.100.0000.00716.93
8.0.90.0070.00016.95
8.0.80.0090.01217.06
8.0.70.0080.00017.11
8.0.60.0040.00417.04
8.0.50.0040.00417.04
8.0.30.0070.01017.15
8.0.20.0140.00617.40
8.0.10.0000.00816.98
8.0.00.0080.01016.96
7.4.330.0050.00015.55
7.4.320.0030.00316.71
7.4.300.0080.00016.60
7.4.290.0030.00316.48
7.4.280.0070.00016.70
7.4.270.0030.00316.54
7.4.260.0020.00516.49
7.4.250.0000.00716.63
7.4.240.0050.00516.70
7.4.230.0000.00716.57
7.4.220.0000.00716.33
7.4.210.0050.01216.66
7.4.200.0000.00716.49
7.4.160.0120.00716.60
7.4.150.0140.00317.40
7.4.140.0110.00717.86
7.4.130.0130.00416.49
7.4.120.0090.01216.63
7.4.110.0100.00716.73
7.4.100.0110.01116.61
7.4.90.0110.00716.50
7.4.80.0110.00719.39
7.4.70.0090.00916.60
7.4.60.0000.01516.53
7.4.50.0030.01216.53
7.4.40.0100.01316.56
7.4.10.0130.00315.17
7.4.00.0070.00915.01
7.3.330.0000.00613.25
7.3.320.0000.00613.29
7.3.310.0000.00716.49
7.3.300.0030.00316.43
7.3.290.0070.00716.44
7.3.280.0150.00016.38
7.3.270.0130.00917.40
7.3.260.0150.00916.56
7.3.240.0080.01316.48
7.3.230.0140.00716.53
7.3.210.0060.01216.52
7.3.200.0140.00316.68
7.3.190.0170.00016.43
7.3.180.0070.01016.39
7.3.170.0130.00316.58
7.3.160.0120.00916.49
7.3.130.0070.01115.13
7.3.120.0060.01214.99
7.3.110.0100.00714.92
7.3.100.0070.00914.93
7.3.90.0060.01014.94
7.3.80.0080.00615.03
7.3.70.0020.01214.82
7.3.60.0050.01214.87
7.3.50.0050.00914.99
7.3.40.0050.01214.85
7.3.30.0050.00914.93
7.3.20.0070.00716.83
7.3.10.0090.00716.59
7.3.00.0090.00516.53
7.2.330.0090.01616.80
7.2.320.0030.01516.95
7.2.310.0190.00316.86
7.2.300.0100.00716.82
7.2.290.0130.00316.44
7.2.260.0050.01214.88
7.2.250.0090.00915.04
7.2.240.0070.00715.10
7.2.230.0040.01014.97
7.2.220.0060.01015.15
7.2.210.0060.00615.15
7.2.200.0080.00415.09
7.2.190.0040.00914.99
7.2.180.0070.00715.20
7.2.170.0060.00615.09
7.2.160.0030.00915.08
7.2.150.0020.01217.10
7.2.140.0050.01016.95
7.2.130.0080.00916.79
7.2.120.0060.00916.92
7.2.110.0050.00816.81
7.2.100.0060.00616.94
7.2.90.0090.00716.89
7.2.80.0090.00717.00
7.2.70.0040.01117.00
7.2.60.0080.00816.90
7.2.50.0020.01116.83
7.2.40.0050.00916.98
7.2.30.0040.01017.04
7.2.20.0100.00817.23
7.2.10.0070.01017.25
7.2.00.0110.00817.14
7.1.330.0040.00915.77
7.1.320.0080.00615.86
7.1.310.0110.00315.78
7.1.300.0080.00615.74
7.1.290.0040.00915.81
7.1.280.0050.00715.94
7.1.270.0080.00615.90
7.1.260.0020.01115.75
7.1.250.0050.00715.78
7.1.240.0070.00715.99
7.1.230.0030.00615.68
7.1.220.0070.00715.86
7.1.210.0070.01015.71
7.1.200.0060.00615.87
7.1.190.0030.01115.91
7.1.180.0070.00715.89
7.1.170.0000.01015.59
7.1.160.0100.00315.90
7.1.150.0080.00415.62
7.1.140.0080.01116.44
7.1.130.0070.01216.22
7.1.120.0090.01016.33
7.1.110.0180.01216.09
7.1.100.0120.00715.95
7.1.90.0100.01116.29
7.1.80.0100.00915.99
7.1.70.0060.01015.59
7.1.60.0160.01124.67
7.1.50.0180.00924.52
7.1.40.0150.01224.09
7.1.30.0140.00924.18
7.1.20.0180.01524.42
7.1.10.0060.01315.21
7.1.00.0070.01515.30
7.0.330.0080.00715.46
7.0.320.0070.00715.62
7.0.310.0070.00415.38
7.0.300.0030.01015.45
7.0.290.0040.01115.36
7.0.280.0040.00415.25
7.0.270.0090.00315.38
7.0.260.0000.00915.42
7.0.250.0000.01315.40
7.0.240.0070.01015.24
7.0.230.0070.01015.52
7.0.220.0040.01215.27
7.0.210.0060.00315.51
7.0.200.0030.00915.60
7.0.190.0000.01015.45
7.0.180.0070.00315.20
7.0.170.0000.01215.37
7.0.160.0070.00715.16
7.0.150.0040.00715.57
7.0.140.0080.00015.50
7.0.130.0040.00815.35
7.0.120.0060.00615.45
7.0.110.0060.00615.43
7.0.100.0000.01815.36
7.0.90.0060.00315.18
7.0.80.0060.00615.64
7.0.70.0090.00615.58
7.0.60.0070.01015.24
7.0.50.0130.00315.64
7.0.40.0060.00613.60
7.0.30.0060.00613.70
7.0.20.0060.01013.55
7.0.10.0030.01013.54
7.0.00.0000.01513.37
5.6.400.0120.00814.32
5.6.390.0130.00014.31
5.6.380.0110.00414.57
5.6.370.0000.01314.43
5.6.360.0000.00814.30
5.6.350.0030.01114.18
5.6.340.0040.01114.54
5.6.330.0040.01014.44
5.6.320.0000.01514.38
5.6.310.0080.00514.63
5.6.300.0080.00614.31
5.6.290.0070.00714.61
5.6.280.0000.01514.82
5.6.270.0000.01014.12
5.6.260.0030.01314.28
5.6.250.0000.01014.54
5.6.240.0040.00414.64
5.6.230.0070.00714.46
5.6.220.0000.01414.37
5.6.210.0000.01314.34
5.6.200.0060.00914.48
5.6.190.0060.00914.44
5.6.180.0070.00414.30
5.6.170.0070.00714.42
5.6.160.0000.01014.47
5.6.150.0120.00014.27
5.6.140.0090.00314.86
5.6.130.0090.00614.49
5.6.120.0060.00914.34
5.6.110.0060.00614.45
5.6.100.0030.01214.43
5.6.90.0070.00714.75
5.6.80.0060.00314.56
5.6.70.0030.00714.30
5.6.60.0110.00314.35
5.6.50.0070.00714.10
5.6.40.0080.00814.00
5.6.30.0090.00614.06
5.6.20.0110.00414.19
5.6.10.0040.00814.48
5.6.00.0070.00714.34

preferences:
68.59 ms | 400 KiB | 5 Q