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 . 'AA'; $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.0030.01418.67
8.3.30.0120.00618.70
8.3.20.0060.00320.36
8.3.10.0060.00322.04
8.3.00.0060.00322.52
8.2.170.0120.00622.96
8.2.160.0140.00720.52
8.2.150.0060.00324.18
8.2.140.0000.01024.66
8.2.130.0000.02226.16
8.2.120.0070.00319.77
8.2.110.0080.00320.46
8.2.100.0120.00019.21
8.2.90.0000.00919.09
8.2.80.0070.00319.46
8.2.70.0080.00317.50
8.2.60.0030.00718.03
8.2.50.0000.01018.07
8.2.40.0000.00918.16
8.2.30.0030.00617.93
8.2.20.0000.01017.65
8.2.10.0000.01017.62
8.2.00.0000.01117.78
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0000.01028.09
8.1.240.0040.00823.98
8.1.230.0100.00319.10
8.1.220.0050.00517.88
8.1.210.0030.00718.77
8.1.200.0060.00616.98
8.1.190.0030.00617.40
8.1.180.0060.00318.63
8.1.170.0070.00318.51
8.1.160.0000.00922.17
8.1.150.0000.01018.54
8.1.140.0000.00917.34
8.1.130.0030.00617.89
8.1.120.0060.00317.29
8.1.110.0080.00317.38
8.1.100.0030.00717.41
8.1.90.0000.00917.32
8.1.80.0030.00717.43
8.1.70.0040.00417.31
8.1.60.0040.00817.41
8.1.50.0030.00717.40
8.1.40.0030.00717.46
8.1.30.0060.00317.61
8.1.20.0000.01017.56
8.1.10.0030.00617.41
8.1.00.0070.00717.36
8.0.300.0060.00318.77
8.0.290.0030.00717.18
8.0.280.0060.00318.36
8.0.270.0030.00617.26
8.0.260.0000.00816.85
8.0.250.0000.00916.96
8.0.240.0000.01016.86
8.0.230.0040.00416.92
8.0.220.0030.00616.85
8.0.210.0030.00616.75
8.0.200.0030.00616.91
8.0.190.0030.00716.92
8.0.180.0030.00616.82
8.0.170.0060.00316.83
8.0.160.0040.00516.82
8.0.150.0000.00916.82
8.0.140.0000.00916.85
8.0.130.0050.00313.27
8.0.120.0000.01016.76
8.0.110.0090.00016.94
8.0.100.0000.00916.84
8.0.90.0060.00316.89
8.0.80.0120.00916.89
8.0.70.0060.00316.77
8.0.60.0030.00616.76
8.0.50.0030.00616.95
8.0.30.0130.00816.88
8.0.20.0120.00817.40
8.0.10.0000.00916.86
8.0.00.0110.01016.72
7.4.330.0000.00715.15
7.4.320.0030.00616.58
7.4.300.0000.00916.58
7.4.290.0030.00616.60
7.4.280.0030.00616.55
7.4.270.0030.00616.57
7.4.260.0030.00916.57
7.4.250.0030.00716.60
7.4.240.0040.00416.57
7.4.230.0060.00316.42
7.4.220.0090.01216.70
7.4.210.0060.01116.54
7.4.200.0000.00916.57
7.4.190.0000.00916.64
7.4.160.0030.02116.47
7.4.150.0170.00817.40
7.4.140.0080.01517.86
7.4.130.0110.00816.59
7.4.120.0140.00716.50
7.4.110.0110.00916.49
7.4.100.0170.00416.45
7.4.90.0100.01016.42
7.4.80.0100.01019.39
7.4.70.0080.01216.38
7.4.60.0130.00716.53
7.4.50.0000.01216.55
7.4.40.0070.01022.77
7.4.30.0060.01216.48
7.4.10.0070.01116.43
7.4.00.0080.01015.54
7.3.330.0000.00713.25
7.3.320.0000.00813.17
7.3.310.0000.00916.20
7.3.300.0040.00416.28
7.3.290.0030.01316.32
7.3.280.0070.01116.22
7.3.270.0030.01817.40
7.3.260.0150.00616.37
7.3.250.0090.01116.30
7.3.240.0110.01016.22
7.3.230.0110.01116.54
7.3.210.0170.00316.42
7.3.200.0120.00619.39
7.3.190.0120.01216.26
7.3.180.0070.01116.49
7.3.170.0180.00616.55
7.3.160.0080.01116.43
7.3.130.0060.01216.25
7.3.120.0080.01115.18
7.3.110.0020.01615.59
7.3.100.0020.01315.52
7.3.90.0090.00815.46
7.3.80.0070.00815.54
7.3.70.0100.00615.53
7.3.60.0070.01315.69
7.3.50.0130.00815.56
7.3.40.0060.01215.49
7.3.30.0070.01015.42
7.3.20.0080.00817.22
7.3.10.0050.01217.20
7.3.00.0020.01417.49
7.2.330.0110.01216.70
7.2.320.0060.01516.50
7.2.310.0090.01616.40
7.2.300.0090.00916.60
7.2.290.0040.01516.68
7.2.260.0080.01216.59
7.2.250.0050.01615.89
7.2.240.0060.01315.75
7.2.230.0090.00815.81
7.2.220.0050.01315.95
7.2.210.0060.01215.73
7.2.200.0070.01215.85
7.2.190.0030.01315.58
7.2.180.0080.01115.69
7.2.170.0040.01015.86
7.2.160.0030.01616.63
7.2.150.0070.01518.27
7.2.140.0030.01318.39
7.2.130.0100.00718.43
7.2.120.0080.00917.40
7.2.110.0070.00917.43
7.2.100.0070.01217.59
7.2.90.0090.00717.37
7.2.80.0050.01217.18
7.2.70.0080.00817.60
7.2.60.0030.01317.27
7.2.50.0050.01317.40
7.2.40.0050.01217.61
7.2.30.0050.00817.62
7.2.20.0040.01417.50
7.2.10.0030.01417.62
7.2.00.0020.01318.31
7.1.330.0060.00916.40
7.1.320.0070.00916.57
7.1.310.0070.01216.47
7.1.300.0100.00816.51
7.1.290.0040.01316.54
7.1.280.0030.01116.51
7.1.270.0030.01516.55
7.1.260.0070.00616.52
7.1.250.0000.01717.38
7.1.240.0070.00916.37
7.1.230.0070.00716.58
7.1.220.0110.00616.56
7.1.210.0000.01316.49
7.1.200.0050.01116.22
7.1.190.0000.01716.65
7.1.180.0070.00716.61
7.1.170.0070.00916.50
7.1.160.0070.00916.60
7.1.150.0050.01016.52
7.1.140.0050.00816.47
7.1.130.0070.00616.50
7.1.120.0080.00916.60
7.1.110.0050.01016.67
7.1.100.0060.01017.19
7.1.90.0060.01116.55
7.1.80.0090.00616.54
7.1.70.0030.01116.58
7.1.60.0080.01417.56
7.1.50.0030.01516.70
7.1.40.0080.00916.64
7.1.30.0060.01116.40
7.1.20.0070.01216.47
7.1.10.0050.01116.57
7.1.00.0100.02918.50
7.0.330.0140.00317.15
7.0.320.0060.00616.16
7.0.310.0050.00716.07
7.0.300.0090.00816.14
7.0.290.0030.01116.31
7.0.280.0050.01016.23
7.0.270.0050.01216.20
7.0.260.0080.00716.36
7.0.250.0020.01116.33
7.0.240.0050.01116.31
7.0.230.0050.01216.05
7.0.220.0030.00916.07
7.0.210.0050.01016.25
7.0.200.0040.01116.24
7.0.190.0030.00916.00
7.0.180.0070.00716.33
7.0.170.0050.01016.23
7.0.160.0040.01416.20
7.0.150.0070.00816.10
7.0.140.0060.02818.15
7.0.130.0030.01016.09
7.0.120.0030.01616.23
7.0.110.0080.00816.22
7.0.100.0080.00616.28
7.0.90.0080.00515.98
7.0.80.0070.01016.20
7.0.70.0060.01116.27
7.0.60.0070.03017.37
7.0.50.0020.02616.91
7.0.40.0010.02516.20
7.0.30.0080.02216.27
7.0.20.0080.02216.19
7.0.10.0050.02216.18
7.0.00.0080.02516.26
5.6.400.0070.00715.75
5.6.390.0030.01315.75
5.6.380.0060.01015.09
5.6.370.0020.01215.14
5.6.360.0040.01114.93
5.6.350.0020.01415.11
5.6.340.0030.01015.26
5.6.330.0040.01215.21
5.6.320.0050.01215.04
5.6.310.0100.00514.98
5.6.300.0080.00714.98
5.6.290.0040.00915.15
5.6.280.0090.02816.93
5.6.270.0080.00815.24
5.6.260.0110.00814.99
5.6.250.0060.00915.05
5.6.240.0030.01214.95
5.6.230.0070.01015.05
5.6.220.0080.00814.94
5.6.210.0100.02917.13
5.6.200.0040.02316.04
5.6.190.0090.01916.89
5.6.180.0190.02816.92
5.6.170.0100.02416.84
5.6.160.0040.03716.88
5.6.150.0070.03216.19
5.6.140.0090.03416.21
5.6.130.0070.03716.07
5.6.120.0070.02216.97
5.6.110.0110.03217.04
5.6.100.0070.03016.99
5.6.90.0070.03417.13
5.6.80.0070.01916.69
5.6.70.0060.01015.06
5.6.60.0050.01414.87
5.6.50.0030.01415.04
5.6.40.0080.01015.11
5.6.30.0110.00914.89
5.6.20.0050.01314.93
5.6.10.0070.01014.86
5.6.00.0050.01014.87
5.5.380.0050.01113.46
5.5.370.0050.00913.43
5.5.360.0060.01113.46
5.5.350.0140.02915.87
5.5.340.0020.02114.90
5.5.330.0080.03215.68
5.5.320.0180.02815.65
5.5.310.0100.01915.73
5.5.300.0040.03814.96
5.5.290.0030.03214.96
5.5.280.0020.03815.88
5.5.270.0060.03315.88
5.5.260.0100.03215.98
5.5.250.0030.02915.75
5.5.240.0090.01715.71
5.5.230.0020.01413.35
5.5.220.0020.01213.46
5.5.210.0040.01013.45
5.5.200.0070.00913.37
5.5.190.0080.00813.40
5.5.180.0050.01013.50
5.5.170.0080.00714.84
5.5.160.0080.00513.44
5.5.150.0030.01013.31
5.5.140.0030.01113.46
5.5.130.0030.01213.41
5.5.120.0040.01213.26
5.5.110.0030.01213.28
5.5.100.0020.00913.29
5.5.90.0020.01013.41
5.5.80.0050.00913.44
5.5.70.0040.00713.43
5.5.60.0110.00313.31
5.5.50.0070.01013.45
5.5.40.0070.00913.33
5.5.30.0100.00713.32
5.5.20.0040.01013.49
5.5.10.0100.00513.44
5.5.00.0040.01113.38
5.4.450.0190.02014.31
5.4.440.0270.02014.37
5.4.430.0190.01914.28
5.4.420.0320.02114.30
5.4.410.0240.02014.25
5.4.400.0120.02114.22
5.4.390.0210.02014.23
5.4.380.0200.02314.14
5.4.370.0140.02414.11
5.4.360.0140.02214.06
5.4.350.0100.02814.17
5.4.340.0130.02614.09
5.4.330.0030.01011.84
5.4.320.0020.02312.00
5.4.310.0060.01912.02
5.4.300.0010.02311.98
5.4.290.0070.01611.95
5.4.280.0040.02011.92
5.4.270.0060.01811.95
5.4.260.0040.02111.92
5.4.250.0040.02414.18
5.4.240.0070.02014.15
5.4.230.0060.02614.09
5.4.220.0030.02714.17
5.4.210.0090.02014.14
5.4.200.0060.02214.15
5.4.190.0070.02914.02
5.4.180.0020.02514.03
5.4.170.0060.02714.08
5.4.160.0100.01914.10
5.4.150.0080.02214.08
5.4.140.0060.02413.23
5.4.130.0040.02513.24
5.4.120.0030.02713.36
5.4.110.0060.02613.26
5.4.100.0030.02413.30
5.4.90.0090.01813.23
5.4.80.0010.02713.29
5.4.70.0020.02713.26
5.4.60.0030.02513.29
5.4.50.0040.03013.32
5.4.40.0050.02513.32
5.4.30.0040.02213.29
5.4.20.0060.02513.32
5.4.10.0030.02313.24
5.4.00.0040.02513.06
5.3.290.0070.01812.34
5.3.280.0020.02612.84
5.3.270.0050.02512.85
5.3.260.0050.02412.89
5.3.250.0040.02612.89
5.3.240.0040.02312.75
5.3.230.0060.02512.86
5.3.220.0070.02012.77
5.3.210.0050.03512.71
5.3.200.0090.02112.78
5.3.190.0030.02712.74
5.3.180.0060.02212.80
5.3.170.0050.02212.81
5.3.160.0030.02512.89
5.3.150.0030.02612.82
5.3.140.0080.02312.84
5.3.130.0030.02612.84
5.3.120.0070.02312.89
5.3.110.0040.02412.74
5.3.100.0060.02112.68
5.3.90.0040.02612.66
5.3.80.0090.02012.65
5.3.70.0080.02212.60
5.3.60.0060.02112.72
5.3.50.0040.02212.67
5.3.40.0060.02112.72
5.3.30.0040.02112.62
5.3.20.0020.02512.61
5.3.10.0030.02112.47
5.3.00.0040.02112.55
5.2.170.0010.02511.08
5.2.160.0030.03011.08
5.2.150.0020.02311.08
5.2.140.0070.02011.03
5.2.130.0060.02011.00
5.2.120.0030.02111.02
5.2.110.0010.02411.06
5.2.100.0030.02111.00
5.2.90.0060.02011.10
5.2.80.0050.01810.92
5.2.70.0020.02411.01
5.2.60.0050.02211.08
5.2.50.0040.02211.06
5.2.40.0050.02210.97
5.2.30.0100.02510.95
5.2.20.0020.03210.89
5.2.10.0050.02310.93
5.2.00.0070.01710.85
5.1.60.0040.01810.50
5.1.50.0040.01810.57
5.1.40.0050.01710.46
5.1.30.0060.02310.66
5.1.20.0060.01710.68
5.1.10.0060.01710.45
5.1.00.0040.01810.55
5.0.50.0080.0109.83
5.0.40.0020.0179.75
5.0.30.0050.0209.65
5.0.20.0030.0209.63
5.0.10.0020.0179.66
5.0.00.0050.0209.65
4.4.90.0010.0138.66
4.4.80.0050.0108.66
4.4.70.0030.0138.66
4.4.60.0030.0128.66
4.4.50.0070.0108.66
4.4.40.0020.0188.66
4.4.30.0000.0158.63
4.4.20.0000.0158.60
4.4.10.0030.0128.60
4.4.00.0030.0178.60
4.3.110.0070.0138.60
4.3.100.0020.0138.60
4.3.90.0000.0138.58
4.3.80.0020.0188.54
4.3.70.0030.0108.53
4.3.60.0030.0108.52
4.3.50.0020.0138.51
4.3.40.0020.0188.49
4.3.30.0020.0128.49
4.3.20.0020.0138.49
4.3.10.0030.0128.48
4.3.00.0220.00812.79

preferences:
44.02 ms | 400 KiB | 5 Q