3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '12345678901234567890123456789012345678901234567890123456789012345678901'; $passwd1 = $str . 'A'; $passwd2 = $str . 'E'; $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.60.0130.00718.05
8.3.50.0120.00721.02
8.3.40.0130.01318.50
8.3.30.0110.00718.93
8.3.20.0000.00920.16
8.3.10.0030.00622.28
8.3.00.0030.00622.51
8.2.180.0230.00318.29
8.2.170.0090.00922.96
8.2.160.0100.00720.35
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0070.00726.16
8.2.120.0120.00619.70
8.2.110.0070.00322.04
8.2.100.0070.00719.21
8.2.90.0030.00619.22
8.2.80.0030.00717.97
8.2.70.0000.01017.63
8.2.60.0070.00718.04
8.2.50.0070.00318.07
8.2.40.0060.00318.34
8.2.30.0030.00618.03
8.2.20.0000.01017.57
8.2.10.0030.00617.75
8.2.00.0030.01017.70
8.1.280.0130.01325.92
8.1.270.0070.00320.43
8.1.260.0060.00326.35
8.1.250.0030.00628.09
8.1.240.0090.00323.65
8.1.230.0060.00619.15
8.1.220.0060.00317.79
8.1.210.0000.01018.77
8.1.200.0040.00817.23
8.1.190.0030.00717.51
8.1.180.0070.00318.66
8.1.170.0000.01018.61
8.1.160.0000.00922.01
8.1.150.0060.00318.50
8.1.140.0030.00617.43
8.1.130.0040.00417.74
8.1.120.0000.01017.44
8.1.110.0000.01017.36
8.1.100.0030.00717.43
8.1.90.0030.00617.34
8.1.80.0060.00317.38
8.1.70.0000.00917.39
8.1.60.0070.00317.41
8.1.50.0000.00917.44
8.1.40.0000.01017.39
8.1.30.0000.01017.57
8.1.20.0030.00717.56
8.1.10.0000.00917.41
8.1.00.0060.00917.39
8.0.300.0030.00618.77
8.0.290.0000.01016.91
8.0.280.0050.00518.39
8.0.270.0060.00317.16
8.0.260.0000.00916.81
8.0.250.0030.00616.92
8.0.240.0000.01016.96
8.0.230.0090.00016.95
8.0.220.0000.00916.87
8.0.210.0030.00616.88
8.0.200.0030.00616.99
8.0.190.0040.00716.90
8.0.180.0030.00616.97
8.0.170.0000.01016.86
8.0.160.0030.00616.89
8.0.150.0030.00716.96
8.0.140.0060.00316.82
8.0.130.0030.00613.28
8.0.120.0030.00716.84
8.0.110.0000.01016.89
8.0.100.0030.00617.00
8.0.90.0030.00616.84
8.0.80.0000.01816.80
8.0.70.0000.00916.71
8.0.60.0050.00516.95
8.0.50.0040.00716.74
8.0.30.0110.01416.95
8.0.20.0090.01317.40
8.0.10.0030.00616.99
8.0.00.0050.01816.84
7.4.330.0000.00715.11
7.4.320.0040.00416.51
7.4.300.0040.00416.54
7.4.290.0060.00316.64
7.4.280.0030.00616.41
7.4.270.0060.00316.46
7.4.260.0070.00416.60
7.4.250.0000.00916.47
7.4.240.0020.00716.52
7.4.230.0030.00616.60
7.4.220.0140.00716.53
7.4.210.0080.01016.63
7.4.200.0030.00616.41
7.4.190.0060.00316.41
7.4.160.0060.01916.70
7.4.150.0140.00617.40
7.4.140.0080.01217.86
7.4.130.0130.01016.59
7.4.120.0080.01616.58
7.4.110.0080.01116.48
7.4.100.0080.01216.66
7.4.90.0130.00616.43
7.4.80.0070.01719.39
7.4.70.0070.01416.51
7.4.60.0120.00616.34
7.4.50.0000.01116.50
7.4.40.0060.01022.77
7.4.30.0110.00716.41
7.4.10.0070.01415.03
7.4.00.0060.01115.07
7.3.330.0000.00712.99
7.3.320.0000.00713.25
7.3.310.0060.00316.13
7.3.300.0000.00916.29
7.3.290.0120.00916.29
7.3.280.0140.00816.25
7.3.270.0110.01217.40
7.3.260.0060.01416.28
7.3.250.0110.01116.30
7.3.240.0180.00716.48
7.3.230.0070.01516.39
7.3.210.0080.01616.29
7.3.200.0080.01119.39
7.3.190.0160.00916.55
7.3.180.0100.00916.26
7.3.170.0120.00616.54
7.3.160.0030.02016.36
7.3.130.0070.01414.75
7.3.120.0070.01014.70
7.3.110.0060.01215.00
7.3.100.0060.01314.90
7.3.90.0030.01314.51
7.3.80.0140.00314.64
7.3.70.0100.00714.41
7.3.60.0060.00914.78
7.3.50.0040.00714.79
7.3.40.0060.00914.70
7.3.30.0030.00914.67
7.3.20.0110.00716.79
7.3.10.0000.01616.47
7.3.00.0070.00916.68
7.2.330.0210.00716.69
7.2.320.0100.01216.74
7.2.310.0090.01716.71
7.2.300.0090.00916.59
7.2.290.0140.00616.54
7.2.260.0090.01214.90
7.2.250.0070.01414.95
7.2.240.0030.01415.20
7.2.230.0030.01514.96
7.2.220.0030.01615.02
7.2.210.0100.00715.05
7.2.200.0030.01014.96
7.2.190.0000.01515.10
7.2.180.0000.01814.70
7.2.170.0100.01015.07
7.2.160.0070.00415.07
7.2.150.0100.01017.05
7.2.140.0060.01217.08
7.2.130.0050.01117.01
7.2.120.0040.01116.63
7.2.110.0060.01016.86
7.2.100.0060.01116.94
7.2.90.0040.01216.66
7.2.80.0080.00716.68
7.2.70.0080.00916.87
7.2.60.0090.00516.95
7.2.50.0080.00816.75
7.2.40.0050.01116.72
7.2.30.0060.01316.92
7.2.20.0060.00816.82
7.2.10.0060.01016.86
7.2.00.0050.01217.56
7.1.330.0030.01415.96
7.1.320.0030.01015.90
7.1.310.0070.01015.81
7.1.300.0030.01415.86
7.1.290.0070.01015.77
7.1.280.0080.00815.81
7.1.270.0080.00415.86
7.1.260.0100.00715.96
7.1.250.0070.00815.62
7.1.240.0060.00815.72
7.1.230.0070.01115.81
7.1.220.0040.00915.87
7.1.210.0050.00915.64
7.1.200.0030.01215.81
7.1.190.0070.00815.68
7.1.180.0040.01015.78
7.1.170.0070.00715.73
7.1.160.0030.00915.85
7.1.150.0060.01115.72
7.1.140.0070.00815.84
7.1.130.0030.01315.91
7.1.120.0030.01215.80
7.1.110.0040.01015.86
7.1.100.0020.01216.42
7.1.90.0040.01115.74
7.1.80.0050.00915.83
7.1.70.0060.01016.14
7.1.60.0060.00816.04
7.1.50.0060.00915.96
7.1.40.0020.01115.84
7.1.30.0070.00615.72
7.1.20.0080.00715.79
7.1.10.0050.01115.74
7.1.00.0050.02217.45
7.0.330.0070.00915.35
7.0.320.0090.00715.42
7.0.310.0060.00915.49
7.0.300.0050.01115.21
7.0.290.0090.00715.45
7.0.280.0070.00915.31
7.0.270.0040.01215.30
7.0.260.0080.00715.43
7.0.250.0040.01215.39
7.0.240.0050.01215.46
7.0.230.0060.01015.34
7.0.220.0060.00915.41
7.0.210.0050.01015.41
7.0.200.0030.01015.68
7.0.190.0040.00715.30
7.0.180.0010.01315.47
7.0.170.0040.01115.53
7.0.160.0040.01015.48
7.0.150.0020.01215.43
7.0.140.0050.02517.07
7.0.130.0060.00815.57
7.0.120.0040.01115.51
7.0.110.0060.00815.53
7.0.100.0040.00915.40
7.0.90.0060.00915.32
7.0.80.0020.01215.36
7.0.70.0030.01215.36
7.0.60.0060.02816.49
7.0.50.0040.03015.95
7.0.40.0080.02815.10
7.0.30.0110.02715.12
7.0.20.0130.02715.07
7.0.10.0120.02715.06
7.0.00.0050.02015.00
5.6.400.0040.00713.95
5.6.390.0000.01614.51
5.6.380.0040.01014.33
5.6.370.0030.01214.18
5.6.360.0010.01414.38
5.6.350.0050.00814.45
5.6.340.0070.00914.39
5.6.330.0040.01214.17
5.6.320.0060.00814.36
5.6.310.0050.01214.51
5.6.300.0050.01114.33
5.6.290.0050.01014.44
5.6.280.0040.02715.92
5.6.270.0060.00914.31
5.6.260.0020.01314.33
5.6.250.0060.00914.31
5.6.240.0050.00914.26
5.6.230.0070.00914.28
5.6.220.0110.00714.30
5.6.210.0070.01815.82
5.6.200.0080.02715.33
5.6.190.0090.01615.94
5.6.180.1000.01715.73
5.6.170.0130.02615.82
5.6.160.0050.02915.87
5.6.150.0060.02715.33
5.6.140.0060.01515.30
5.6.130.0080.01715.34
5.6.120.0060.03115.87
5.6.110.0050.02016.09
5.6.100.0080.01615.98
5.6.90.0060.01815.98
5.6.80.0040.02415.72
5.6.70.0100.02315.67
5.6.60.0050.00914.28
5.6.50.0070.00814.28
5.6.40.0030.01114.15
5.6.30.0020.01514.44
5.6.20.0070.00814.32
5.6.10.0030.01314.29
5.6.00.0050.01114.23
5.5.380.0040.01212.22
5.5.370.0020.01112.22
5.5.360.0080.00612.26
5.5.350.0100.02614.17
5.5.340.0070.02613.64
5.5.330.0030.01714.27
5.5.320.0090.02514.26
5.5.310.0060.02114.18
5.5.300.0050.02713.67
5.5.290.0040.02213.70
5.5.280.0060.02814.45
5.5.270.0030.02714.40
5.5.260.0080.02814.32
5.5.250.0030.02814.29
5.5.240.0060.02514.08
5.5.230.0050.01012.16
5.5.220.0050.00812.22
5.5.210.0050.00712.13
5.5.200.0030.01112.14
5.5.190.0030.01012.26
5.5.180.0010.01112.18
5.5.170.0060.00813.26
5.5.160.0040.00912.10
5.5.150.0050.00712.27
5.5.140.0030.01112.12
5.5.130.0020.01212.15
5.5.120.0040.00812.19
5.5.110.0040.00812.17
5.5.100.0060.00712.10
5.5.90.0060.00912.25
5.5.80.0060.00712.23
5.5.70.0030.01012.25
5.5.60.0030.01112.25
5.5.50.0020.01012.15
5.5.40.0070.00812.23
5.5.30.0050.00812.28
5.5.20.0040.00912.25
5.5.10.0050.01012.19
5.5.00.0060.00912.17
5.4.450.0270.02013.21
5.4.440.0230.02313.16
5.4.430.0180.02413.18
5.4.420.0190.02313.28
5.4.410.0240.02813.09
5.4.400.0390.02312.95
5.4.390.0330.02012.94
5.4.380.0110.02212.95
5.4.370.0070.02113.01
5.4.360.0070.01912.97
5.4.350.0060.01611.32
5.4.340.0070.01311.33
5.4.330.0020.01011.09
5.4.320.0070.01711.45
5.4.310.0060.01611.36
5.4.300.0070.01511.37
5.4.290.0050.01511.44
5.4.280.0040.01911.33
5.4.270.0020.01911.37
5.4.260.0030.01511.42
5.4.250.0040.02613.07
5.4.240.0050.02013.02
5.4.230.0070.02012.96
5.4.220.0040.02212.99
5.4.210.0080.02113.03
5.4.200.0060.02113.07
5.4.190.0040.02113.05
5.4.180.0050.02013.04
5.4.170.0040.02312.99
5.4.160.0030.02213.00
5.4.150.0060.01812.96
5.4.140.0060.02012.42
5.4.130.0050.01912.46
5.4.120.0020.02912.35
5.4.110.0050.02212.45
5.4.100.0060.01812.32
5.4.90.0040.01912.39
5.4.80.0080.02212.35
5.4.70.0020.02512.43
5.4.60.0020.02712.31
5.4.50.0050.01912.39
5.4.40.0070.02312.37
5.4.30.0060.01912.42
5.4.20.0060.02312.36
5.4.10.0070.01812.43
5.4.00.0040.01812.29
5.3.290.0050.01611.43
5.3.280.0050.02011.84
5.3.270.0040.02011.83
5.3.260.0080.02011.84
5.3.250.0070.02011.87
5.3.240.0050.02111.80
5.3.230.0040.02011.81
5.3.220.0070.01811.76
5.3.210.0060.02511.74
5.3.200.0020.02311.74
5.3.190.0050.02011.85
5.3.180.0030.02211.86
5.3.170.0040.02111.89
5.3.160.0060.01911.87
5.3.150.0050.01911.78
5.3.140.0070.02011.74
5.3.130.0060.02011.83
5.3.120.0040.02011.72
5.3.110.0020.02311.79
5.3.100.0020.02611.69
5.3.90.0040.02111.67
5.3.80.0040.02411.69
5.3.70.0050.02411.63
5.3.60.0030.01711.68
5.3.50.0030.02111.72
5.3.40.0040.01811.71
5.3.30.0040.02111.72
5.3.20.0080.01511.62
5.3.10.0090.01511.50
5.3.00.0090.01711.56
5.2.170.0030.02211.15
5.2.160.0060.02211.21
5.2.150.0020.01911.20
5.2.140.0070.01411.14
5.2.130.0060.01311.17
5.2.120.0070.01411.12
5.2.110.0050.01711.13
5.2.100.0080.01311.18
5.2.90.0040.01611.13
5.2.80.0050.01711.12
5.2.70.0060.01311.15
5.2.60.0050.01611.11
5.2.50.0050.02111.05
5.2.40.0050.01511.13
5.2.30.0030.01811.09
5.2.20.0050.01411.11
5.2.10.0030.01711.07
5.2.00.0000.02011.02
5.1.60.0050.01610.76
5.1.50.0030.01310.79
5.1.40.0050.01410.84
5.1.30.0040.01410.84
5.1.20.0080.01110.95
5.1.10.0030.01510.79
5.1.00.0060.01310.85
5.0.50.0030.01410.29
5.0.40.0010.01410.23
5.0.30.0040.01810.20
5.0.20.0060.00910.15
5.0.10.0030.01610.19
5.0.00.0020.01710.25
4.4.90.0050.0079.49
4.4.80.0030.0129.49
4.4.70.0030.0109.49
4.4.60.0020.0099.49
4.4.50.0030.0119.49
4.4.40.0000.0159.49
4.4.30.0040.0079.49
4.4.20.0040.0089.57
4.4.10.0030.0099.57
4.4.00.0020.0189.57
4.3.110.0020.0139.57
4.3.100.0030.0099.57
4.3.90.0020.0099.57
4.3.80.0030.0119.57
4.3.70.0020.0129.57
4.3.60.0040.0089.57
4.3.50.0020.0119.57
4.3.40.0030.0169.57
4.3.30.0040.0089.57
4.3.20.0020.0129.57
4.3.10.0000.0129.57
4.3.00.0060.0129.78

preferences:
31.99 ms | 401 KiB | 5 Q