3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; $passwd1 = $str . 'A'; $passwd2 = $str . 'B'; $hash1 = crypt($passwd1, $setting . $salt); $hash2 = crypt($passwd2, $setting . $salt); echo ($hash1 === $hash2 ? 'same' : 'unique');

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.40.0110.00718.76
8.3.30.0000.01819.04
8.3.20.0030.00620.21
8.3.10.0100.00023.50
8.3.00.0070.00319.52
8.2.170.0110.01422.96
8.2.160.0140.00420.16
8.2.150.0060.00324.18
8.2.140.0000.01024.66
8.2.130.0070.00326.16
8.2.120.0000.00921.00
8.2.110.0090.00322.13
8.2.100.0070.00717.84
8.2.90.0000.01019.08
8.2.80.0050.00518.03
8.2.70.0070.00318.04
8.2.60.0060.00317.93
8.2.50.0030.00718.10
8.2.40.0030.00720.61
8.2.30.0050.00520.73
8.2.20.0000.00917.59
8.2.10.0000.01017.99
8.2.00.0030.00617.72
8.1.270.0030.00723.96
8.1.260.0030.00626.35
8.1.250.0090.00928.09
8.1.240.0070.00323.83
8.1.230.0070.00717.76
8.1.220.0000.00917.78
8.1.210.0050.00818.77
8.1.200.0000.01217.25
8.1.190.0030.00717.23
8.1.180.0060.00318.10
8.1.170.0000.01018.65
8.1.160.0060.00322.13
8.1.150.0070.00318.75
8.1.140.0000.01017.30
8.1.130.0000.01017.93
8.1.120.0000.00917.29
8.1.110.0030.00617.37
8.1.100.0030.00617.38
8.1.90.0040.00417.38
8.1.80.0030.00717.41
8.1.70.0000.00917.33
8.1.60.0030.00717.50
8.1.50.0070.00317.43
8.1.40.0070.00417.41
8.1.30.0040.00717.59
8.1.20.0000.01017.64
8.1.10.0030.00617.54
8.1.00.0030.00617.48
8.0.300.0050.00519.90
8.0.290.0060.00316.75
8.0.280.0000.01018.32
8.0.270.0040.00417.19
8.0.260.0060.00318.38
8.0.250.0030.00617.00
8.0.240.0060.00316.90
8.0.230.0040.00416.82
8.0.220.0030.00616.75
8.0.210.0000.00916.89
8.0.200.0000.00916.93
8.0.190.0030.00616.86
8.0.180.0050.00516.93
8.0.170.0070.00316.93
8.0.160.0060.00316.94
8.0.150.0030.00616.85
8.0.140.0000.00916.75
8.0.130.0040.00413.32
8.0.120.0030.00616.85
8.0.110.0030.00616.75
8.0.100.0030.00616.94
8.0.90.0000.00916.82
8.0.80.0120.00616.93
8.0.70.0030.00616.95
8.0.60.0000.00916.84
8.0.50.0000.00916.90
8.0.30.0100.01417.02
8.0.20.0100.01617.40
8.0.10.0030.00616.85
8.0.00.0080.01216.71
7.4.330.0030.00315.11
7.4.320.0040.00416.61
7.4.300.0050.00316.45
7.4.290.0030.00616.48
7.4.280.0000.01216.62
7.4.270.0000.00916.45
7.4.260.0000.01016.57
7.4.250.0000.00916.32
7.4.240.0050.00516.58
7.4.230.0030.00616.39
7.4.220.0110.01116.48
7.4.210.0100.01016.63
7.4.200.0000.00916.50
7.4.160.0120.00616.49
7.4.150.0090.01217.40
7.4.140.0080.01617.86
7.4.130.0040.01916.48
7.4.120.0060.01516.50
7.4.110.0170.00316.48
7.4.100.0070.01316.54
7.4.90.0070.01316.40
7.4.80.0070.01719.39
7.4.70.0100.01016.48
7.4.60.0100.01016.57
7.4.50.0030.00916.41
7.4.40.0070.01316.50
7.4.30.0160.01016.61
7.4.10.0070.01314.68
7.4.00.0070.01114.92
7.3.330.0040.00413.17
7.3.320.0000.00713.10
7.3.310.0060.00316.32
7.3.300.0000.00916.17
7.3.290.0100.00716.23
7.3.280.0160.00816.27
7.3.270.0160.01017.40
7.3.260.0150.00916.24
7.3.250.0100.01316.35
7.3.240.0120.00916.35
7.3.230.0120.01216.39
7.3.210.0100.01016.38
7.3.200.0030.01719.39
7.3.190.0130.00616.17
7.3.180.0090.00916.34
7.3.170.0070.01116.58
7.3.160.0090.00916.16
7.3.130.0100.01014.63
7.3.120.0040.01514.83
7.3.110.0080.01214.71
7.3.100.0020.01314.85
7.3.90.0060.01314.80
7.3.80.0050.01014.75
7.3.70.0030.01214.55
7.3.60.0050.01214.74
7.3.50.0050.01214.84
7.3.40.0070.01214.58
7.3.30.0020.01414.69
7.3.20.0060.00516.41
7.3.10.0020.01716.60
7.3.00.0030.01416.58
7.2.330.0030.01616.68
7.2.320.0070.01316.46
7.2.310.0150.00916.52
7.2.300.0150.00616.72
7.2.290.0120.00616.64
7.2.260.0030.01815.29
7.2.250.0050.01515.04
7.2.240.0060.01314.96
7.2.230.0030.01214.95
7.2.220.0060.00814.95
7.2.210.0050.01114.87
7.2.200.0020.01415.01
7.2.190.0090.00914.94
7.2.180.0030.01215.01
7.2.170.0060.01314.97
7.2.160.0030.01315.20
7.2.150.0000.01616.70
7.2.140.0130.00716.95
7.2.130.0090.00617.14
7.2.120.0030.01716.78
7.2.110.0040.01516.71
7.2.100.0070.01016.92
7.2.90.0090.00917.11
7.2.80.0000.01417.09
7.2.70.0040.01416.81
7.2.60.0000.01317.06
7.2.50.0070.01016.88
7.2.40.0000.01417.05
7.2.30.0030.01416.81
7.2.20.0060.00616.86
7.2.10.0090.00816.65
7.2.00.0060.00917.05
7.1.330.0080.00915.63
7.1.320.0040.01115.86
7.1.310.0030.01415.94
7.1.300.0070.01215.60
7.1.290.0090.01015.90
7.1.280.0070.00715.84
7.1.270.0040.01015.70
7.1.260.0030.01415.75
7.1.250.0030.01015.68
7.1.240.0000.01715.60
7.1.230.0030.01315.64
7.1.220.0060.00615.79
7.1.210.0130.00315.54
7.1.200.0060.00915.91
7.1.190.0100.00315.88
7.1.180.0100.00615.82
7.1.170.0100.00715.84
7.1.160.0030.01015.69
7.1.150.0120.00615.81
7.1.140.0070.01015.88
7.1.130.0030.01115.74
7.1.120.0060.01015.79
7.1.110.0030.00915.95
7.1.100.0030.01515.95
7.1.90.0030.01215.96
7.1.80.0060.01215.93
7.1.70.0050.01116.45
7.1.60.0110.01017.70
7.1.50.0110.01116.37
7.1.40.0040.01515.75
7.1.30.0000.01515.84
7.1.20.0060.00915.76
7.1.10.0040.00815.80
7.1.00.0080.04319.10
7.0.330.0030.01215.60
7.0.320.0000.01115.42
7.0.310.0130.00315.54
7.0.300.0070.01015.32
7.0.290.0030.01615.48
7.0.280.0080.01115.34
7.0.270.0040.01115.45
7.0.260.0070.00715.20
7.0.250.0030.00715.42
7.0.240.0070.01015.36
7.0.230.0040.00815.58
7.0.220.0040.01115.10
7.0.210.0000.01415.59
7.0.200.0060.00616.20
7.0.190.0070.01015.35
7.0.180.0000.01215.36
7.0.170.0080.00815.58
7.0.160.0040.01115.56
7.0.150.0090.00615.61
7.0.140.0070.04218.73
7.0.130.0080.00415.61
7.0.120.0060.00615.47
7.0.110.0110.00615.55
7.0.100.0000.01715.39
7.0.90.0080.00415.34
7.0.80.0060.00915.44
7.0.70.0040.01115.36
7.0.60.0020.03017.56
7.0.50.0140.02616.72
7.0.40.0050.05216.97
7.0.30.0260.04016.84
7.0.20.0190.02916.87
7.0.10.0050.05016.75
7.0.00.0090.04616.93
5.6.400.0070.00314.38
5.6.390.0070.01014.11
5.6.380.0040.01414.23
5.6.370.0100.00714.30
5.6.360.0040.01114.29
5.6.350.0060.01214.46
5.6.340.0000.01414.46
5.6.330.0080.00714.09
5.6.320.0030.01513.97
5.6.310.0000.01814.25
5.6.300.0030.01014.38
5.6.290.0090.00614.29
5.6.280.0020.04317.51
5.6.270.0090.00614.22
5.6.260.0030.01614.17
5.6.250.0060.00914.44
5.6.240.0100.01014.24
5.6.230.0080.00914.34
5.6.220.0130.00614.45
5.6.210.0020.05817.29
5.6.200.0020.05016.17
5.6.190.0100.04617.42
5.6.180.0130.05217.27
5.6.170.0180.04217.38
5.6.160.0070.03217.29
5.6.150.0070.03716.27
5.6.140.0020.04316.27
5.6.130.0100.04216.13
5.6.120.0090.04917.78
5.6.110.0100.04617.70
5.6.100.0100.04617.70
5.6.90.0050.02417.85
5.6.80.0050.04917.34
5.6.70.0100.00714.37
5.6.60.0030.01614.06
5.6.50.0100.00614.03
5.6.40.0070.01014.38
5.6.30.0030.01214.28
5.6.20.0030.00914.15
5.6.10.0040.00814.13
5.6.00.0000.01414.28
5.5.380.0100.00614.42
5.5.370.0070.00614.43
5.5.360.0030.01613.98
5.5.350.0020.02517.37
5.5.340.0060.02516.30
5.5.330.0030.02817.39
5.5.320.0140.03617.22
5.5.310.0080.03517.38
5.5.300.0050.04716.27
5.5.290.0100.02216.03
5.5.280.0070.04517.45
5.5.270.0020.03617.45
5.5.260.0080.04417.46
5.5.250.0110.04417.38
5.5.240.0070.04717.21
5.5.230.0030.00714.01
5.5.220.0000.01114.30
5.5.210.0000.01014.32
5.5.200.0090.00914.20
5.5.190.0030.01214.09
5.5.180.0000.01413.79
5.5.170.0000.01514.40
5.5.160.0000.01514.02
5.5.150.0060.01014.11
5.5.140.0060.00614.14
5.5.130.0120.00614.44
5.5.120.0100.00314.39
5.5.110.0090.00614.26
5.5.100.0000.01814.28
5.5.90.0060.01314.24
5.5.80.0080.00414.25
5.5.70.0030.00713.93
5.5.60.0000.01014.13
5.5.50.0000.01714.23
5.5.40.0120.00614.15
5.5.30.0090.00914.26
5.5.20.0060.00614.11
5.5.10.0040.01113.70
5.5.00.0030.01314.13
5.4.450.0190.03916.36
5.4.440.0210.03116.36
5.4.430.0160.02116.50
5.4.420.0080.02516.38
5.4.410.0140.02016.40
5.4.400.0080.02116.16
5.4.390.0100.02416.30
5.4.380.0070.02716.34
5.4.370.0110.02316.38
5.4.360.0100.02316.22
5.4.350.0120.02716.34
5.4.340.0120.03016.22
5.4.330.0100.00313.52
5.4.320.0070.02816.31
5.4.310.0110.02316.15
5.4.300.0100.02616.30
5.4.290.0100.02216.16
5.4.280.0100.02316.30
5.4.270.0140.03516.37
5.4.260.0190.04016.22
5.4.250.0130.02816.30
5.4.240.0180.03416.38
5.4.230.0100.02716.30
5.4.220.0180.04116.32
5.4.210.0200.04016.37
5.4.200.0180.04116.16
5.4.190.0130.04116.19
5.4.180.0220.03316.16
5.4.170.0180.03816.30
5.4.160.0100.04416.14
5.4.150.0140.03416.15
5.4.140.0110.03614.92
5.4.130.0170.02314.88
5.4.120.0170.02814.84
5.4.110.0180.02814.91
5.4.100.0130.04014.96
5.4.90.0180.03514.85
5.4.80.0200.02715.00
5.4.70.0170.03014.94
5.4.60.0150.03514.86
5.4.50.0130.03014.94
5.4.40.0150.03714.84
5.4.30.0150.04014.89
5.4.20.0080.03214.98
5.4.10.0230.03314.98
5.4.00.0180.02514.65
5.3.290.0120.02014.03
5.3.280.0170.04014.01
5.3.270.0200.03614.11
5.3.260.0170.03814.05
5.3.250.0220.03614.00
5.3.240.0120.02913.98
5.3.230.0170.02513.99
5.3.220.0120.03213.96
5.3.210.0130.03313.96
5.3.200.0120.03313.98
5.3.190.0170.04014.02
5.3.180.0150.03913.97
5.3.170.0170.04014.05
5.3.160.0130.03314.01
5.3.150.0190.03513.96
5.3.140.0150.03814.08
5.3.130.0200.03613.95
5.3.120.0150.04414.02
5.3.110.0150.02813.98
5.3.100.0170.02313.79
5.3.90.0150.04213.76
5.3.80.0150.02913.69
5.3.70.0210.03313.72
5.3.60.0180.03213.77
5.3.50.0100.04113.69
5.3.40.0210.03213.74
5.3.30.0070.02513.72
5.3.20.0160.02613.57
5.3.10.0120.04013.54
5.3.00.0120.02913.63
5.2.170.0270.04711.38
5.2.160.0230.04311.38
5.2.150.0170.03711.38
5.2.140.0230.05711.38
5.2.130.0270.05711.38
5.2.120.0200.05311.38
5.2.110.0100.05711.38
5.2.100.0270.04011.38
5.2.90.0230.05711.38
5.2.80.0230.05311.38
5.2.70.0200.06311.38
5.2.60.0230.05011.38
5.2.50.0130.03711.38
5.2.40.0230.05011.38
5.2.30.0230.05311.38
5.2.20.0200.05311.38
5.2.10.0170.06011.38
5.2.00.0130.04311.38
5.1.60.0170.03011.38
5.1.50.0200.04711.38
5.1.40.0230.03311.38
5.1.30.0170.03711.38
5.1.20.0230.05011.38
5.1.10.0170.02311.38
5.1.00.0230.02011.38
5.0.50.0100.04711.38
5.0.40.0070.03011.38
5.0.30.0100.03711.38
5.0.20.0070.04711.38
5.0.10.0100.03311.38
5.0.00.0070.06711.38
4.4.90.0130.03311.38
4.4.80.0100.02311.38
4.4.70.0100.03711.38
4.4.60.0030.02711.38
4.4.50.0100.01711.38
4.4.40.0100.02711.38
4.4.30.0030.03011.38
4.4.20.0070.01711.38
4.4.10.0130.01011.38
4.4.00.0070.05311.38
4.3.110.0070.02011.38
4.3.100.0100.03311.38
4.3.90.0130.03011.38
4.3.80.0100.04011.38
4.3.70.0100.03711.38
4.3.60.0030.04011.38
4.3.50.0100.02311.38
4.3.40.0070.03711.38
4.3.30.0000.04011.38
4.3.20.0030.03711.38
4.3.10.0100.03311.38
4.3.00.0100.03311.38

preferences:
57.06 ms | 400 KiB | 5 Q