3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'test'; $salt = 'testtesttesttesttesttesttest'; $hash1 = crypt($password, '$2a$10$' . $salt); $hash2 = crypt($password, '$2y$10$' . $salt); printf("Hash 2a: %s\n", $hash1); printf("Hash 2y: %s\n", $hash2);

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.0100.19916.50
8.3.50.0170.20316.30
8.3.40.0130.20218.72
8.3.30.0130.18718.76
8.3.20.0100.09918.65
8.3.10.0000.11018.44
8.3.00.0070.10319.38
8.2.180.0030.19816.47
8.2.170.0100.19122.96
8.2.160.0100.19318.96
8.2.150.0030.10524.18
8.2.140.0030.10524.66
8.2.130.0030.10426.16
8.2.120.0030.10421.18
8.2.110.0100.10120.17
8.2.100.0090.11717.72
8.2.90.0000.12117.49
8.2.80.0030.11918.82
8.2.70.0030.12717.63
8.2.60.0030.11718.16
8.2.50.0030.11818.07
8.2.40.0000.12119.35
8.2.30.0000.12317.54
8.2.20.0070.13117.49
8.2.10.0000.12117.77
8.2.00.0100.12417.73
8.1.280.0170.20225.92
8.1.270.0030.10423.99
8.1.260.0000.10826.35
8.1.250.0070.10228.09
8.1.240.0000.11118.93
8.1.230.0030.12017.83
8.1.220.0070.11617.74
8.1.210.0030.11918.77
8.1.200.0130.10917.35
8.1.190.0070.11517.23
8.1.180.0030.11918.10
8.1.170.0000.12018.76
8.1.160.0000.12119.01
8.1.150.0030.11718.61
8.1.140.0030.11717.27
8.1.130.0030.11719.07
8.1.120.0030.11617.40
8.1.110.0070.11617.43
8.1.100.0070.11317.26
8.1.90.0000.12017.43
8.1.80.0000.12017.39
8.1.70.0000.12017.35
8.1.60.0030.11817.38
8.1.50.0000.12117.37
8.1.40.0070.11617.45
8.1.30.0030.12117.53
8.1.20.0000.12117.57
8.1.10.0030.11717.51
8.1.00.0000.12017.45
8.0.300.0100.11218.77
8.0.290.0030.12316.75
8.0.280.0070.11618.46
8.0.270.0070.11417.30
8.0.260.0070.11316.86
8.0.250.0000.12016.91
8.0.240.0030.11716.95
8.0.230.0070.11516.94
8.0.220.0060.11516.88
8.0.210.0000.12016.77
8.0.200.0000.11916.91
8.0.190.0030.11616.95
8.0.180.0070.12316.87
8.0.170.0070.11516.72
8.0.160.0030.11616.85
8.0.150.0030.11816.72
8.0.140.0070.12916.75
8.0.130.0000.11913.34
8.0.120.0030.11916.82
8.0.110.0000.11916.82
8.0.100.0030.11716.86
8.0.90.0070.11316.89
8.0.80.0100.17716.88
8.0.70.0000.12016.80
8.0.60.0030.12216.80
8.0.50.0100.11716.77
8.0.30.0100.16317.07
8.0.20.0080.17017.03
8.0.10.0030.11816.89
8.0.00.0080.17816.69
7.4.330.0070.11112.91
7.4.320.0000.12116.42
7.4.300.0030.11516.38
7.4.290.0030.11616.44
7.4.280.0070.11516.42
7.4.270.0030.11616.59
7.4.260.0030.11613.15
7.4.250.0070.12016.51
7.4.240.0030.11716.43
7.4.230.0160.12416.27
7.4.220.0060.20316.38
7.4.210.0100.18816.44
7.4.200.0130.11916.18
7.4.190.0000.12116.24
7.4.160.0100.17516.40
7.4.150.0100.16616.30
7.4.140.0100.18916.39
7.4.130.0160.16216.48
7.4.120.0100.17716.45
7.4.110.0130.16716.34
7.4.100.0030.17816.38
7.4.90.0100.17116.33
7.4.80.0060.17619.39
7.4.70.0030.17116.38
7.4.60.0060.16916.34
7.4.50.0000.08716.39
7.4.40.0100.12316.34
7.4.30.0100.17616.65
7.4.00.0070.13614.78
7.3.330.0000.12313.13
7.3.320.0100.10813.09
7.3.310.0030.11716.25
7.3.300.0000.11916.07
7.3.290.0050.18316.21
7.3.280.0120.18216.14
7.3.270.0060.17416.27
7.3.260.0030.17416.20
7.3.250.0080.17016.15
7.3.240.0130.16316.23
7.3.230.0100.17116.34
7.3.210.0130.16416.37
7.3.200.0160.16216.30
7.3.190.0190.16116.50
7.3.180.0100.16516.27
7.3.170.0100.16616.35
7.3.160.0070.17016.26
7.3.120.0070.13114.64
7.3.110.0130.12814.85
7.3.100.0070.13614.92
7.3.90.0030.13514.93
7.3.80.0050.13114.62
7.3.70.0020.13714.73
7.3.60.0050.12914.66
7.3.50.0070.13614.63
7.3.40.0050.12814.70
7.3.30.0080.13114.66
7.3.20.0070.12916.40
7.3.10.0070.13016.66
7.3.00.0020.13516.50
7.2.330.0060.17216.57
7.2.320.0160.16116.68
7.2.310.0190.19216.58
7.2.300.0030.17716.77
7.2.290.0100.17216.68
7.2.250.0100.13415.04
7.2.240.0030.14014.88
7.2.230.0070.13814.95
7.2.220.0080.13215.04
7.2.210.0100.13214.80
7.2.200.0080.13414.94
7.2.190.0080.12715.07
7.2.180.0000.14214.90
7.2.170.0050.13514.96
7.2.160.0030.13314.97
7.2.150.0030.13316.84
7.2.140.0030.12916.89
7.2.130.0080.13016.84
7.2.120.0120.12516.96
7.2.110.0030.13716.60
7.2.100.0070.13316.73
7.2.90.0070.13016.97
7.2.80.0070.13416.86
7.2.70.0030.13716.76
7.2.60.0070.13516.83
7.2.50.0100.12716.86
7.2.40.0050.13516.93
7.2.30.0050.13016.80
7.2.20.0070.13316.92
7.2.10.0070.13016.85
7.2.00.0030.13316.82
7.1.330.0100.13015.83
7.1.320.0030.13315.78
7.1.310.0050.13515.65
7.1.300.0020.13315.72
7.1.290.0020.13315.72
7.1.280.0070.13115.61
7.1.270.0020.13515.64
7.1.260.0030.14115.63
7.1.250.0100.13215.85
7.1.70.0070.16016.90
7.1.60.0100.20219.30
7.1.50.0100.17616.98
7.1.00.0030.14022.54
7.0.200.0000.13116.77
7.0.140.0030.22722.07
7.0.120.0000.23022.15
7.0.60.0030.16720.01
7.0.50.0070.16017.81
7.0.40.0030.22020.40
7.0.30.0400.19720.02
7.0.20.0170.17020.04
7.0.10.0030.20720.13
7.0.00.0170.18320.11
5.6.280.0030.23020.95
5.6.210.0070.20020.64
5.6.200.0070.16318.13
5.6.190.0070.21720.57
5.6.180.0300.17720.41
5.6.170.0330.17020.47
5.6.160.0170.22320.50
5.6.150.0070.18718.14
5.6.140.0030.15718.18
5.6.130.0070.18718.18
5.6.120.0100.16320.98
5.6.110.0100.24020.96
5.6.100.0070.16021.11
5.6.90.0130.21721.09
5.6.80.0130.21020.52
5.5.350.0300.20020.47
5.5.340.0070.16718.02
5.5.330.0100.22320.21
5.5.320.0170.16720.27
5.5.310.0330.18720.30
5.5.300.0070.16317.92
5.5.290.0000.17717.92
5.5.280.0130.19020.79
5.5.270.0100.17320.95
5.5.260.0070.17720.67
5.5.250.0070.18020.69
5.5.240.0000.22720.02
5.4.450.0070.16319.33
5.4.440.0100.16019.45
5.4.430.0070.21719.32
5.4.420.0100.16019.11
5.4.410.0070.17318.98
5.4.400.0070.22018.91
5.4.390.0030.22019.12
5.4.380.0030.19319.14
5.4.370.0000.18318.81
5.4.360.0030.17319.20
5.4.350.0070.22019.18
5.4.340.0130.16718.78
5.4.320.0030.22319.18
5.4.310.0100.21319.18
5.4.300.0070.16319.17
5.4.290.0030.22318.92
5.4.280.0030.23019.07
5.4.270.0030.16019.18
5.4.260.0070.22719.14
5.4.250.0000.20319.15
5.4.240.0000.21719.07
5.4.230.0130.15019.16
5.4.220.0000.16319.11
5.4.210.0070.15719.19
5.4.200.0070.15319.13
5.4.190.0000.16019.13
5.4.180.0070.15718.78
5.4.170.0000.17018.80
5.4.160.0070.16019.05
5.4.150.0070.15718.89
5.4.140.0000.15716.25
5.4.130.0070.15016.41
5.4.120.0030.15716.34
5.4.110.0230.15716.36
5.4.100.0000.15716.15
5.4.90.0030.15316.32
5.4.80.0030.15316.39
5.4.70.0030.22016.23
5.4.60.0030.21316.21
5.4.50.0030.16316.21
5.4.40.0030.16316.34
5.4.30.0100.18316.36
5.4.20.0030.22716.59
5.4.10.0030.16716.30
5.4.00.0030.15315.73
5.3.290.0030.17314.68
5.3.280.0030.17714.54
5.3.270.0070.15314.57
5.3.260.0370.14714.58
5.3.250.0070.15714.39
5.3.240.0000.15714.54
5.3.230.0030.16314.52
5.3.220.0030.15314.50
5.3.210.0070.15714.58
5.3.200.0070.15014.53
5.3.190.0000.15714.50
5.3.180.0030.18014.65
5.3.170.0130.21314.35
5.3.160.0030.21314.50
5.3.150.0070.19714.48
5.3.140.0200.17314.38
5.3.130.0000.16714.44
5.3.120.0070.23014.56
5.3.110.0030.21014.45
5.3.100.0100.20014.05
5.3.90.0030.15713.98
5.3.80.0070.16013.96
5.3.70.0200.16713.96
5.3.60.0070.15014.00
5.3.50.0030.10013.83
5.3.40.0100.09313.96
5.3.30.0070.16013.79
5.3.20.0000.10013.69
5.3.10.0100.12313.54
5.3.00.0030.14713.52
5.2.170.0030.03010.99
5.2.160.0000.04311.08
5.2.150.0030.04711.02
5.2.140.0100.04711.07
5.2.130.0070.05311.03
5.2.120.0070.06010.94
5.2.110.0100.05310.95
5.2.100.0030.03011.02
5.2.90.0170.04011.02
5.2.80.0000.03710.93
5.2.70.0030.03310.99
5.2.60.0030.03010.89
5.2.50.0030.05310.86
5.2.40.0070.03010.92
5.2.30.0000.03710.81
5.2.20.0030.06010.79
5.2.10.0100.04710.93
5.2.00.0070.04310.68
5.1.60.0130.0309.98
5.1.50.0030.0409.88
5.1.40.0070.0339.80
5.1.30.0030.03310.35
5.1.20.0070.06010.31
5.1.10.0130.03710.05
5.1.00.0070.04310.11
5.0.50.0000.0378.52
5.0.40.0100.0278.37
5.0.30.0030.0308.18
5.0.20.0030.0378.26
5.0.10.0070.0438.24
5.0.00.0070.0578.06
4.4.90.0000.0178.06
4.4.80.0000.0208.06
4.4.70.0100.0308.06
4.4.60.0000.0208.06
4.4.50.0000.0178.06
4.4.40.0100.0438.06
4.4.30.0000.0378.06
4.4.20.0030.0408.06
4.4.10.0030.0238.06
4.4.00.0100.0478.06
4.3.110.0000.0238.06
4.3.100.0030.0178.06
4.3.90.0000.0208.06
4.3.80.0000.0308.06
4.3.70.0030.0238.06
4.3.60.0030.0238.06
4.3.50.0070.0278.06
4.3.40.0000.0478.06
4.3.30.0030.0378.06
4.3.20.0000.0408.06
4.3.10.0000.0208.06
4.3.00.0000.0208.06

preferences:
48.52 ms | 401 KiB | 5 Q