3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$4$'; $salt = '12345678901234589012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '12345678901234567890678901234567890123456789012'; $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.0080.00818.71
8.3.30.0080.00819.09
8.3.20.0110.00420.16
8.3.10.0000.00822.13
8.3.00.0080.00022.58
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0110.00424.18
8.2.140.0170.00424.66
8.2.130.0050.00226.16
8.2.120.0050.00319.63
8.2.110.0030.00722.11
8.2.100.0080.00417.91
8.2.90.0040.00419.23
8.2.80.0070.00317.97
8.2.70.0030.00617.63
8.2.60.0040.00418.05
8.2.50.0080.00018.07
8.2.40.0000.00818.14
8.2.30.0000.00717.93
8.2.20.0040.00417.72
8.2.10.0000.00817.80
8.2.00.0090.00017.82
8.1.270.0090.00020.41
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00323.74
8.1.230.0110.00018.82
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0100.00017.11
8.1.190.0030.00517.43
8.1.180.0040.00418.74
8.1.170.0000.00818.45
8.1.160.0000.00722.15
8.1.150.0100.00018.59
8.1.140.0040.00417.38
8.1.130.0070.00017.74
8.1.120.0000.00717.40
8.1.110.0000.00817.44
8.1.100.0040.00417.40
8.1.90.0050.00217.37
8.1.80.0030.00517.45
8.1.70.0000.00717.37
8.1.60.0030.00617.56
8.1.50.0030.00517.46
8.1.40.0000.00817.41
8.1.30.0030.00617.55
8.1.20.0030.00517.59
8.1.10.0080.00017.41
8.1.00.0000.00917.52
8.0.300.0050.00218.77
8.0.290.0040.00417.04
8.0.280.0020.00518.36
8.0.270.0020.00517.25
8.0.260.0030.00316.75
8.0.250.0050.00216.83
8.0.240.0040.00416.86
8.0.230.0000.00716.86
8.0.220.0000.00716.81
8.0.210.0000.00716.76
8.0.200.0070.00016.96
8.0.190.0000.00716.97
8.0.180.0040.00416.88
8.0.170.0030.00616.80
8.0.160.0070.00016.82
8.0.150.0040.00416.96
8.0.140.0050.00216.78
8.0.130.0030.00313.36
8.0.120.0000.00816.82
8.0.110.0090.00016.82
8.0.100.0040.00416.81
8.0.90.0040.00416.80
8.0.80.0120.01216.89
8.0.70.0070.00016.91
8.0.60.0000.00716.89
8.0.50.0000.00716.93
8.0.30.0110.00817.23
8.0.20.0060.01217.40
8.0.10.0040.00416.84
8.0.00.0080.01016.66
7.4.330.0050.00015.00
7.4.320.0000.00616.43
7.4.300.0030.00316.61
7.4.290.0030.00316.56
7.4.280.0070.00016.40
7.4.270.0000.00716.55
7.4.260.0070.00016.57
7.4.250.0000.00716.47
7.4.240.0040.00416.59
7.4.230.0000.00716.68
7.4.220.0060.01316.63
7.4.210.0030.01516.55
7.4.200.0080.00016.53
7.4.190.0070.00016.42
7.4.160.0160.00016.43
7.4.150.0170.00017.40
7.4.140.0110.01117.86
7.4.130.0090.00816.42
7.4.120.0060.01016.53
7.4.110.0170.00616.56
7.4.100.0060.01016.64
7.4.90.0120.00616.50
7.4.80.0030.01519.39
7.4.70.0120.00416.32
7.4.60.0100.00716.49
7.4.50.0000.00816.34
7.4.40.0150.00022.77
7.4.30.0110.01116.70
7.4.10.0040.01214.75
7.4.00.0040.01315.04
7.3.330.0000.00513.11
7.3.320.0060.00013.17
7.3.310.0030.00316.11
7.3.300.0000.00716.25
7.3.290.0040.01116.15
7.3.280.0100.00916.28
7.3.270.0040.01417.40
7.3.260.0100.00716.36
7.3.250.0090.01116.49
7.3.240.0070.01416.59
7.3.230.0090.00916.43
7.3.210.0070.01116.23
7.3.200.0080.00819.39
7.3.190.0070.01116.45
7.3.180.0100.00716.48
7.3.170.0110.00516.27
7.3.160.0090.00616.36
7.3.130.0130.00614.74
7.3.120.0080.00614.80
7.3.110.0000.01814.59
7.3.100.0040.00814.98
7.3.90.0070.00714.75
7.3.80.0060.00814.72
7.3.70.0000.01514.91
7.3.60.0060.00314.84
7.3.50.0040.00414.86
7.3.40.0140.00014.64
7.3.30.0090.00614.75
7.3.20.0110.00016.79
7.3.10.0080.00316.34
7.3.00.0060.00916.61
7.2.330.0090.01316.65
7.2.320.0080.01016.56
7.2.310.0150.00916.62
7.2.300.0030.01416.63
7.2.290.0100.00516.77
7.2.260.0070.01014.84
7.2.250.0070.01115.10
7.2.240.0030.00914.97
7.2.230.0040.01115.00
7.2.220.0030.00615.13
7.2.210.0070.00715.01
7.2.200.0030.00615.12
7.2.190.0060.00615.13
7.2.180.0070.00314.96
7.2.170.0090.00614.88
7.2.160.0100.00315.11
7.2.150.0070.00717.07
7.2.140.0080.00616.59
7.2.130.0060.01016.85
7.2.120.0040.01116.63
7.2.110.0050.01116.87
7.2.100.0070.01016.73
7.2.90.0040.00716.84
7.2.80.0040.00916.79
7.2.70.0050.00716.81
7.2.60.0000.01016.92
7.2.50.0060.01017.00
7.2.40.0090.00616.89
7.2.30.0030.01116.98
7.2.20.0050.01216.74
7.2.10.0020.01316.85
7.2.00.0060.00917.53
7.1.330.0030.01015.53
7.1.320.0030.00615.71
7.1.310.0090.00615.65
7.1.300.0090.00315.49
7.1.290.0060.00315.88
7.1.280.0060.00315.88
7.1.270.0040.00415.82
7.1.260.0030.00615.88
7.1.250.0050.00715.67
7.1.240.0070.00715.67
7.1.230.0030.01015.88
7.1.220.0050.00815.68
7.1.210.0060.00715.77
7.1.200.0030.00815.55
7.1.190.0080.00515.92
7.1.180.0020.01215.63
7.1.170.0050.00815.66
7.1.160.0070.00815.66
7.1.150.0050.00715.74
7.1.140.0010.00915.77
7.1.130.0090.00515.68
7.1.120.0060.00815.78
7.1.110.0050.01015.68
7.1.100.0090.00716.66
7.1.90.0090.00315.70
7.1.80.0070.00715.77
7.1.70.0080.00416.27
7.1.60.0090.00717.18
7.1.50.0090.00716.20
7.1.40.0080.00715.67
7.1.30.0060.00515.79
7.1.20.0020.01015.73
7.1.10.0030.00915.55
7.1.00.0080.01318.03
7.0.330.0040.00615.52
7.0.320.0090.00515.35
7.0.310.0030.00915.15
7.0.300.0060.00815.45
7.0.290.0000.01315.41
7.0.280.0070.00715.36
7.0.270.0090.00315.06
7.0.260.0050.00715.28
7.0.250.0070.00715.27
7.0.240.0100.00515.47
7.0.230.0050.00915.48
7.0.220.0040.00815.33
7.0.210.0070.00715.26
7.0.200.0060.00615.78
7.0.190.0080.00315.33
7.0.180.0080.00115.39
7.0.170.0010.00815.27
7.0.160.0060.00515.48
7.0.150.0040.00715.30
7.0.140.0070.02817.55
7.0.130.0060.00515.44
7.0.120.0090.00315.45
7.0.110.0050.00715.36
7.0.100.0070.00715.32
7.0.90.0070.00715.30
7.0.80.0070.00515.48
7.0.70.0100.00215.30
7.0.60.0080.03016.74
7.0.50.0050.03316.30
7.0.40.0050.02115.55
7.0.30.0090.01715.74
7.0.20.0110.02615.66
7.0.10.0100.03015.73
7.0.00.0050.02015.65
5.6.400.0000.01614.36
5.6.390.0030.01014.31
5.6.380.0030.01014.45
5.6.370.0050.00714.50
5.6.360.0030.01114.58
5.6.350.0030.00814.21
5.6.340.0020.01114.56
5.6.330.0060.00814.33
5.6.320.0070.00714.62
5.6.310.0070.00714.41
5.6.300.0020.00914.37
5.6.290.0060.00814.18
5.6.280.0040.03016.58
5.6.270.0040.00914.31
5.6.260.0000.01614.51
5.6.250.0030.00814.55
5.6.240.0060.00614.60
5.6.230.0020.00714.42
5.6.220.0030.00914.47
5.6.210.0050.02216.38
5.6.200.0010.02815.58
5.6.190.0040.02416.38
5.6.180.1170.02016.43
5.6.170.0120.03116.45
5.6.160.0060.02816.28
5.6.150.0030.02015.56
5.6.140.0090.02415.71
5.6.130.0080.02515.73
5.6.120.0080.01716.62
5.6.110.0090.02616.49
5.6.100.0130.02016.59
5.6.90.0080.02816.55
5.6.80.0080.01716.28
5.6.70.0030.01816.26
5.6.60.0020.01214.35
5.6.50.0030.00614.25
5.6.40.0050.01014.49
5.6.30.0060.00414.20
5.6.20.0140.00214.37
5.6.10.0040.00914.36
5.6.00.0080.00314.32
5.5.380.0010.00712.85
5.5.370.0050.00712.71
5.5.360.0030.01012.70
5.5.350.0070.01615.31
5.5.340.0070.02914.52
5.5.330.0050.03115.20
5.5.320.0070.03215.30
5.5.310.0100.01915.28
5.5.300.0070.02414.57
5.5.290.0030.02114.56
5.5.280.0030.03015.52
5.5.270.0050.02315.47
5.5.260.0040.02715.41
5.5.250.0070.03015.43
5.5.240.0040.02015.22
5.5.230.0050.00412.64
5.5.220.0020.01012.65
5.5.210.0030.00712.89
5.5.200.0050.00712.65
5.5.190.0030.01012.76
5.5.180.0040.00612.64
5.5.170.0050.00712.80
5.5.160.0080.00312.69
5.5.150.0090.00312.80
5.5.140.0050.00712.63
5.5.130.0060.00612.83
5.5.120.0060.00612.75
5.5.110.0030.00712.68
5.5.100.0080.00312.76
5.5.90.0050.00812.70
5.5.80.0050.00612.78
5.5.70.0030.00812.65
5.5.60.0050.01012.74
5.5.50.0050.00812.62
5.5.40.0050.00612.80
5.5.30.0080.00612.65
5.5.20.0030.00512.74
5.5.10.0030.00712.80
5.5.00.0050.00712.76
5.4.450.0410.02814.53
5.4.440.0360.01714.66
5.4.430.0220.02614.63
5.4.420.0280.02214.54
5.4.410.0270.02714.61
5.4.400.0210.02714.38
5.4.390.0070.02514.33
5.4.380.0150.02214.36
5.4.370.0060.02514.38
5.4.360.0070.02214.39
5.4.350.0080.01712.15
5.4.340.0100.01712.15
5.4.330.0030.00412.21
5.4.320.0030.01912.31
5.4.310.0070.01512.31
5.4.300.0050.01512.31
5.4.290.0020.02212.31
5.4.280.0050.01512.28
5.4.270.0050.01812.28
5.4.260.0060.01812.27
5.4.250.0090.02214.47
5.4.240.0080.01914.39
5.4.230.0070.02014.47
5.4.220.0030.02414.45
5.4.210.0070.01914.42
5.4.200.0060.02014.50
5.4.190.0070.02014.47
5.4.180.0060.02014.45
5.4.170.0080.01814.49
5.4.160.0090.02014.41
5.4.150.0080.02114.40
5.4.140.0070.01913.65
5.4.130.0070.01813.61
5.4.120.0050.02113.66
5.4.110.0040.02413.61
5.4.100.0040.02013.66
5.4.90.0030.02013.65
5.4.80.0030.02513.60
5.4.70.0070.02213.63
5.4.60.0080.02113.66
5.4.50.0050.02413.60
5.4.40.0090.01713.67
5.4.30.0070.02013.64
5.4.20.0040.02213.58
5.4.10.0050.02013.60
5.4.00.0050.02113.41
5.3.290.0080.01512.41
5.3.280.0090.01413.04
5.3.270.0050.02213.03
5.3.260.0060.02213.03
5.3.250.0050.01912.95
5.3.240.0020.02313.08
5.3.230.0040.02712.93
5.3.220.0010.02512.96
5.3.210.0080.01913.00
5.3.200.0040.02212.92
5.3.190.0010.02313.01
5.3.180.0040.03112.99
5.3.170.0040.02313.02
5.3.160.0060.02113.02
5.3.150.0060.02013.05
5.3.140.0050.01913.01
5.3.130.0060.02013.01
5.3.120.0070.02112.96
5.3.110.0070.01913.04
5.3.100.0070.02012.83
5.3.90.0080.02612.79
5.3.80.0030.01912.84
5.3.70.0020.02112.84
5.3.60.0020.02112.83
5.3.50.0030.02112.78
5.3.40.0050.01912.84
5.3.30.0050.02012.73
5.3.20.0040.02012.67
5.3.10.0040.02112.74
5.3.00.0030.02012.69
5.2.170.0030.02111.13
5.2.160.0020.02311.08
5.2.150.0090.01511.00
5.2.140.0050.02211.13
5.2.130.0020.03211.12
5.2.120.0060.02011.05
5.2.110.0020.02211.07
5.2.100.0050.02011.07
5.2.90.0050.01911.16
5.2.80.0020.02611.13
5.2.70.0070.02311.06
5.2.60.0020.02511.04
5.2.50.0070.02011.01
5.2.40.0070.02011.08
5.2.30.0040.02211.09
5.2.20.0060.02011.12
5.2.10.0080.01611.06
5.2.00.0050.02110.90
5.1.60.0020.01810.45
5.1.50.0060.01710.54
5.1.40.0090.01610.53
5.1.30.0030.01810.66
5.1.20.0070.02010.68
5.1.10.0030.01910.65
5.1.00.0040.02210.70
5.0.50.0040.01910.04
5.0.40.0050.01210.04
5.0.30.0000.02510.04
5.0.20.0020.01310.04
5.0.10.0050.01310.04
5.0.00.0010.02110.04
4.4.90.0040.01310.13
4.4.80.0020.01210.13
4.4.70.0000.01410.13
4.4.60.0000.01310.13
4.4.50.0030.01110.13
4.4.40.0020.01710.13
4.4.30.0010.01110.13
4.4.20.0020.01210.13
4.4.10.0030.01210.04
4.4.00.0020.01810.04
4.3.110.0030.01310.04
4.3.100.0000.01510.04
4.3.90.0000.01610.04
4.3.80.0000.02010.04
4.3.70.0030.01010.04
4.3.60.0020.01110.04
4.3.50.0020.01010.04
4.3.40.0030.01510.04
4.3.30.0010.01310.04
4.3.20.0010.01810.04
4.3.10.0020.01310.04
4.3.00.0070.0139.66

preferences:
49.81 ms | 404 KiB | 6 Q