3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'test'; $salt = 'testtesttesttesttesttesttest'; // pre-calculated hash using PHP 5.4 and the new flag $2y$ $hash = '$2y$10$testtesttesttesttesttetsVhdqssnPoru2WOCEBbSFwYnOfjwmG'; $result = crypt($password, $hash); printf("Length hash verify: %d\n", strlen($result)); printf("Length hash: %d\n", strlen($hash)); if ($hash === $result) { echo "OK!\n"; } else { echo "ERROR\n"; }

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.0070.11118.43
8.3.50.0120.09921.91
8.3.40.0070.10218.77
8.3.30.0030.11818.59
8.3.20.0030.05518.37
8.3.10.0070.05120.43
8.3.00.0100.06523.56
8.2.180.0070.11616.32
8.2.170.0100.09822.96
8.2.160.0170.09620.38
8.2.150.0100.04824.18
8.2.140.0000.05824.66
8.2.130.0030.05426.16
8.2.120.0060.05219.70
8.2.110.0100.05020.96
8.2.100.0070.06817.66
8.2.90.0000.06419.26
8.2.80.0000.07017.97
8.2.70.0100.06217.63
8.2.60.0000.06417.92
8.2.50.0070.06618.07
8.2.40.0030.06218.22
8.2.30.0000.06519.85
8.2.20.0030.06117.66
8.2.10.0000.06517.68
8.2.00.0100.05517.68
8.1.280.0100.09825.92
8.1.270.0030.05423.99
8.1.260.0070.05326.35
8.1.250.0000.05828.09
8.1.240.0130.05020.63
8.1.230.0070.06220.92
8.1.220.0100.05518.77
8.1.210.0030.06118.77
8.1.200.0030.06317.23
8.1.190.0030.06217.28
8.1.180.0000.06518.10
8.1.170.0070.05718.58
8.1.160.0070.05718.79
8.1.150.0030.06118.64
8.1.140.0000.06517.36
8.1.130.0030.06117.76
8.1.120.0030.06017.43
8.1.110.0070.05917.45
8.1.100.0000.06317.28
8.1.90.0060.05817.40
8.1.80.0000.06417.38
8.1.70.0000.06317.39
8.1.60.0030.07017.57
8.1.50.0060.05917.33
8.1.40.0000.06417.36
8.1.30.0060.05817.48
8.1.20.0030.06117.67
8.1.10.0000.06417.47
8.1.00.0030.06117.37
8.0.300.0000.06919.85
8.0.290.0070.05716.75
8.0.280.0070.05618.34
8.0.270.0030.06017.30
8.0.260.0070.05616.87
8.0.250.0030.06116.82
8.0.240.0030.06216.97
8.0.230.0070.05816.75
8.0.220.0000.06416.74
8.0.210.0100.05416.73
8.0.200.0000.06316.91
8.0.190.0060.05816.87
8.0.180.0030.06116.90
8.0.170.0030.06216.86
8.0.160.0000.06516.68
8.0.150.0030.06316.84
8.0.140.0060.05816.73
8.0.130.0030.05913.25
8.0.120.0070.05716.79
8.0.110.0030.06616.83
8.0.100.0060.05716.73
8.0.90.0030.06016.90
8.0.80.0070.10616.79
8.0.70.0000.06416.73
8.0.60.0030.06516.68
8.0.50.0000.06416.61
8.0.30.0130.08717.07
8.0.20.0100.09117.40
8.0.10.0000.06417.02
8.0.00.0130.08416.85
7.4.330.0030.05814.66
7.4.320.0030.06316.49
7.4.300.0060.05816.59
7.4.290.0000.06416.61
7.4.280.0030.06216.59
7.4.270.0070.05716.52
7.4.260.0000.06213.20
7.4.250.0070.05816.55
7.4.240.0030.06016.46
7.4.230.0030.06016.34
7.4.220.0060.09216.57
7.4.210.0050.09716.62
7.4.200.0000.06516.61
7.4.190.0030.06016.36
7.4.160.0100.09116.40
7.4.150.0070.09117.40
7.4.140.0140.09717.86
7.4.130.0190.07916.50
7.4.120.0110.08816.54
7.4.110.0110.08916.40
7.4.100.0100.09416.47
7.4.90.0060.09116.36
7.4.80.0070.09019.37
7.4.70.0100.08816.44
7.4.60.0030.09816.33
7.4.50.0030.06616.41
7.4.40.0000.07422.27
7.4.30.0100.08916.58
7.4.00.0000.07614.91
7.3.330.0030.05813.06
7.3.320.0030.05812.98
7.3.310.0070.05716.34
7.3.300.0000.06316.22
7.3.290.0100.09416.16
7.3.280.0090.09716.25
7.3.270.0130.08517.40
7.3.260.0130.09518.24
7.3.250.0130.09016.48
7.3.240.0100.08616.28
7.3.230.0100.08716.39
7.3.210.0100.08716.55
7.3.200.0090.08819.39
7.3.190.0030.09516.46
7.3.180.0070.09616.12
7.3.170.0060.09116.27
7.3.160.0100.07616.57
7.3.120.0100.06614.88
7.2.330.0130.08716.45
7.2.320.0140.10516.64
7.2.310.0060.09616.63
7.2.300.0130.08916.58
7.2.290.0100.08716.69
7.2.110.0330.05516.48
7.2.100.0140.07116.74
7.2.90.0110.08416.34
7.2.80.0200.07416.43
7.2.70.0170.08016.77
7.2.60.0140.07616.88
7.2.50.0190.07816.64
7.2.40.0290.06716.79
7.2.30.0160.07116.55
7.2.20.0220.06916.82
7.2.10.0220.07216.82
7.2.00.0050.07418.21
7.1.230.0170.07315.68
7.1.220.0100.07815.76
7.1.210.0130.07315.75
7.1.200.0160.07615.95
7.1.190.0120.07615.44
7.1.180.0110.08515.83
7.1.170.0160.07215.87
7.1.160.0170.06915.47
7.1.150.0220.06815.66
7.1.140.0160.07515.72
7.1.130.0190.07315.61
7.1.120.0130.07615.86
7.1.110.0250.06515.71
7.1.100.0070.07716.98
7.1.90.0030.08915.69
7.1.80.0100.07715.80
7.1.70.0220.06916.27
7.1.60.0260.10717.48
7.1.50.0150.07816.24
7.1.40.0580.07715.35
7.1.30.0370.06815.74
7.1.20.0300.07815.78
7.1.10.0210.07515.46
7.1.00.0070.12319.10
7.0.310.0150.07715.54
7.0.300.0290.06315.28
7.0.290.0120.07215.48
7.0.280.0130.07415.40
7.0.270.0210.06015.30
7.0.260.0130.07015.25
7.0.250.0140.06415.34
7.0.240.0110.08415.34
7.0.230.0070.08015.44
7.0.220.0170.07714.97
7.0.210.0500.06315.10
7.0.200.0200.06616.13
7.0.190.0310.07215.14
7.0.180.0290.07215.20
7.0.170.0310.08515.40
7.0.160.0370.07715.46
7.0.150.0070.08315.30
7.0.140.0090.11718.53
7.0.130.0130.08615.15
7.0.120.0100.07715.27
7.0.110.0190.07015.52
7.0.100.0240.07015.02
7.0.90.0070.08015.34
7.0.80.0190.07115.34
7.0.70.0200.07015.14
7.0.60.0170.10417.71
7.0.50.0060.09316.71
7.0.40.0110.08315.46
7.0.30.0040.09315.62
7.0.20.0050.08915.55
7.0.10.0080.08915.54
7.0.00.0080.08915.64
5.6.380.0160.06614.29
5.6.370.0130.07213.89
5.6.360.0110.07613.91
5.6.350.0210.06514.40
5.6.340.0270.06514.45
5.6.330.0210.06614.39
5.6.320.0170.07714.57
5.6.310.0320.07714.05
5.6.300.0100.07714.28
5.6.290.0150.07014.27
5.6.280.0090.11917.39
5.6.270.0130.07814.69
5.6.260.0200.07014.33
5.6.250.0190.07114.00
5.6.240.0250.06614.38
5.6.230.0190.07114.37
5.6.220.0180.07214.36
5.6.210.0170.10517.53
5.6.200.0100.08716.14
5.6.190.0160.08116.16
5.6.180.0070.09016.33
5.6.170.0130.08516.07
5.6.160.0030.10016.05
5.6.150.0150.10416.21
5.6.140.0090.08716.14
5.6.130.0150.11716.22
5.6.120.0090.11416.32
5.6.110.0110.08816.22
5.6.100.0120.11616.30
5.6.90.0130.11316.27
5.6.80.0100.09115.98
5.6.70.0130.10615.91
5.6.60.0130.08615.96
5.6.50.0050.10215.85
5.6.40.0130.11716.03
5.6.30.0020.09015.83
5.6.20.0100.12115.83
5.6.10.0160.08315.85
5.6.00.0100.08816.02
5.5.380.0140.06810.91
5.5.370.0070.07611.11
5.5.360.0040.07711.11
5.5.350.0150.10315.59
5.5.340.0050.08714.32
5.5.330.0050.08614.50
5.5.320.0080.08214.51
5.5.310.0100.08314.59
5.5.300.0040.10514.64
5.5.290.0100.11914.64
5.5.280.0080.08514.42
5.5.270.0050.09214.43
5.5.260.0070.10714.51
5.5.250.0110.11314.25
5.5.240.0060.11114.13
5.5.230.0080.11614.09
5.5.220.0080.08714.01
5.5.210.0030.12114.18
5.5.200.0100.10413.99
5.5.190.0050.09114.15
5.5.180.0050.08814.20
5.5.170.0130.07314.06
5.5.160.0070.08714.22
5.5.150.0070.08214.18
5.5.140.0050.08514.00
5.5.130.0080.08214.24
5.5.120.0050.08814.18
5.5.110.0030.08914.22
5.5.100.0050.11714.14
5.5.90.0080.10914.00
5.5.80.0100.08214.02
5.5.70.0050.10714.06
5.5.60.0100.11414.10
5.5.50.0070.08813.93
5.5.40.0070.11514.15
5.5.30.0070.09214.15
5.5.20.0070.10514.10
5.5.10.0080.11013.91
5.5.00.0070.09114.10
5.4.450.0080.11315.08
5.4.440.0060.11615.23
5.4.430.0100.10715.11
5.4.420.0150.10315.12
5.4.410.0130.09515.17
5.4.400.0080.09914.95
5.4.390.0120.11414.94
5.4.380.0120.10614.95
5.4.370.0080.10014.79
5.4.360.0070.11214.95
5.4.350.0050.08515.05
5.4.340.0100.08115.03
5.4.330.0070.07610.78
5.4.320.0080.08614.93
5.4.310.0070.11214.85
5.4.300.0080.08314.87
5.4.290.0050.08514.97
5.4.280.0030.11114.92
5.4.270.0090.11214.96
5.4.260.0070.10014.96
5.4.250.0120.08114.82
5.4.240.0170.10814.80
5.4.230.0080.08815.09
5.4.220.0050.09914.95
5.4.210.0060.11715.01
5.4.200.0080.11214.87
5.4.190.0110.08014.75
5.4.180.0050.08814.92
5.4.170.0110.08814.77
5.4.160.0130.08214.95
5.4.150.0100.09014.73
5.4.140.0060.11513.53
5.4.130.0070.10013.64
5.4.120.0110.08813.56
5.4.110.0120.09313.50
5.4.100.0120.11113.55
5.4.90.0130.10613.62
5.4.80.0050.08913.64
5.4.70.0030.08813.65
5.4.60.0100.11213.42
5.4.50.0030.08813.66
5.4.40.0050.09813.58
5.4.30.0170.09013.74
5.4.20.0110.10813.57
5.4.10.0100.09513.59
5.4.00.0080.08213.34
5.3.290.0120.08312.50
5.3.280.0100.11412.46
5.3.270.0100.08212.48
5.3.260.0080.11212.51
5.3.250.0070.09312.50
5.3.240.0050.11212.52
5.3.230.0120.10912.46
5.3.220.0100.08012.44
5.3.210.0080.10712.39
5.3.200.0080.10312.46
5.3.190.0100.11512.54
5.3.180.0150.10912.45
5.3.170.0030.12312.43
5.3.160.0090.08812.44
5.3.150.0100.10912.46
5.3.140.0120.10512.38
5.3.130.0070.11112.34
5.3.120.0030.09012.43
5.3.110.0080.11612.44
5.3.100.0050.08912.16
5.3.90.0060.09612.18
5.3.80.0050.10112.15
5.3.70.0070.08612.16
5.3.60.0110.03512.25
5.3.50.0040.02312.20
5.3.40.0100.03312.23
5.3.30.0120.03612.20
5.3.20.0050.02312.07
5.3.10.0090.03412.01
5.3.00.0080.01812.03
5.2.170.0090.03110.72
5.2.160.0080.02310.71
5.2.150.0090.03110.73
5.2.140.0060.02610.70
5.2.130.0060.02810.68
5.2.120.0060.03410.66
5.2.110.0050.01710.71
5.2.100.0070.01810.70
5.2.90.0030.03510.74
5.2.80.0130.02710.67
5.2.70.0050.02310.69
5.2.60.0090.02810.58
5.2.50.0070.03310.62
5.2.40.0090.02010.66
5.2.30.0080.02810.63
5.2.20.0070.02510.65
5.2.10.0040.03710.58
5.2.00.0050.03410.58
5.1.60.0070.02210.22
5.1.50.0040.03110.14
5.1.40.0090.02010.15
5.1.30.0040.03210.35
5.1.20.0070.02010.34
5.1.10.0070.02510.20
5.1.00.0020.02310.22
5.0.50.0040.0239.45
5.0.40.0060.0189.39
5.0.30.0050.0309.34
5.0.20.0060.0219.26
5.0.10.0050.0139.30
5.0.00.0100.0179.25
4.4.90.0040.0169.07
4.4.80.0110.0129.07
4.4.70.0040.0179.07
4.4.60.0090.0179.07
4.4.50.0040.0199.07
4.4.40.0040.0219.07
4.4.30.0040.0189.07
4.4.20.0080.0159.07
4.4.10.0050.0209.07
4.4.00.0050.0319.07
4.3.110.0080.0199.07
4.3.100.0050.0199.07
4.3.90.0040.0199.07
4.3.80.0070.0189.07
4.3.70.0040.0139.07
4.3.60.0090.0159.07
4.3.50.0050.0199.07
4.3.40.0040.0259.07
4.3.30.0050.0199.07
4.3.20.0040.0219.07
4.3.10.0060.0129.07
4.3.00.0040.0139.07

preferences:
46.74 ms | 401 KiB | 5 Q