3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user_input="My1sTpassword"; $password = crypt("My1sTpassword"); // let salt be generated /* Si dovrebbe passare l'intero risultato di crypt() come chiave di confronto della password per evitare problemi con differenti algoritmi di hash. (Come detto prima lo standard basato su DES usa chiavi di 2 caratteri, mentre lo standard basato su MD5 ne usa 12). */ if (crypt($user_input, $password) == $password) { echo "Password verified!"; } ?>

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.0170.00318.28
8.3.50.0160.00220.96
8.3.40.0100.00318.84
8.3.30.0100.00320.04
8.3.20.0040.00420.57
8.3.10.0060.00321.10
8.3.00.0080.00022.33
8.2.180.0060.00916.63
8.2.170.0060.00922.96
8.2.160.0070.00720.35
8.2.150.0070.00024.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0040.00420.94
8.2.110.0030.00622.29
8.2.100.0040.00717.91
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0000.00817.48
8.2.60.0050.00318.04
8.2.50.0080.00018.07
8.2.40.0070.00418.03
8.2.30.0040.00419.43
8.2.20.0000.00717.64
8.2.10.0000.00817.82
8.2.00.0080.00317.72
8.1.280.0110.00825.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.52
8.1.230.0000.01120.68
8.1.220.0000.00818.77
8.1.210.0070.00320.68
8.1.200.0110.00317.25
8.1.190.0000.00917.41
8.1.180.0080.00018.10
8.1.170.0070.00318.66
8.1.160.0040.00418.82
8.1.150.0040.00418.54
8.1.140.0040.00417.38
8.1.130.0070.00017.88
8.1.120.0040.00317.41
8.1.110.0040.00417.39
8.1.100.0000.00717.41
8.1.90.0040.00417.37
8.1.80.0040.00417.43
8.1.70.0030.00517.40
8.1.60.0060.00317.40
8.1.50.0000.00717.48
8.1.40.0070.00017.49
8.1.30.0000.00717.61
8.1.20.0030.00517.55
8.1.10.0000.00717.59
8.1.00.0040.00417.34
8.0.300.0040.00419.85
8.0.290.0040.00417.18
8.0.280.0070.00018.33
8.0.270.0060.00317.09
8.0.260.0060.00016.82
8.0.250.0000.00816.99
8.0.240.0040.00416.96
8.0.230.0070.00016.82
8.0.220.0000.00916.95
8.0.210.0030.00316.84
8.0.200.0040.00416.95
8.0.190.0000.00816.99
8.0.180.0040.00416.94
8.0.170.0040.00416.81
8.0.160.0000.00716.86
8.0.150.0040.00416.72
8.0.140.0000.01216.89
8.0.130.0000.00613.28
8.0.120.0000.00816.86
8.0.110.0080.00016.80
8.0.100.0000.00716.87
8.0.90.0030.00516.78
8.0.80.0150.00316.89
8.0.70.0070.00016.70
8.0.60.0040.00416.93
8.0.50.0070.00016.88
8.0.30.0060.01216.93
8.0.20.0110.00817.40
8.0.10.0050.00217.07
8.0.00.0090.00916.86
7.4.330.0000.00516.79
7.4.320.0030.00316.41
7.4.300.0030.00316.49
7.4.290.0000.00716.48
7.4.280.0000.00716.47
7.4.270.0000.00716.57
7.4.260.0030.00313.27
7.4.250.0060.00316.54
7.4.240.0030.00416.55
7.4.230.0050.00316.51
7.4.220.0120.00916.50
7.4.210.0060.01116.61
7.4.200.0070.00016.49
7.4.190.0000.00716.75
7.4.160.0000.01616.79
7.4.150.0070.01117.40
7.4.140.0140.00617.86
7.4.130.0060.01116.48
7.4.120.0110.00716.60
7.4.110.0080.00916.48
7.4.100.0030.01416.63
7.4.90.0030.01616.53
7.4.80.0120.00619.39
7.4.70.0140.00316.35
7.4.60.0030.01816.38
7.4.50.0040.00416.29
7.4.40.0080.00822.77
7.4.30.0070.01716.62
7.4.10.0070.01114.89
7.4.00.0030.01315.06
7.3.330.0000.00513.09
7.3.320.0030.00313.00
7.3.310.0000.00716.22
7.3.300.0070.00016.24
7.3.290.0090.00916.17
7.3.280.0070.01116.29
7.3.270.0110.00717.40
7.3.260.0110.00818.24
7.3.250.0110.00716.37
7.3.240.0070.01016.24
7.3.230.0030.01316.54
7.3.210.0060.01516.22
7.3.200.0110.00719.39
7.3.190.0120.00616.29
7.3.180.0070.01316.35
7.3.170.0130.00316.34
7.3.160.0160.00616.48
7.3.130.0120.00814.96
7.3.120.0030.01514.79
7.3.110.0050.01214.78
7.3.100.0070.00914.85
7.3.90.0060.00914.72
7.3.80.0050.00814.85
7.3.70.0030.00914.56
7.3.60.0100.00414.55
7.3.50.0080.00914.74
7.3.40.0080.00614.78
7.3.30.0000.01214.68
7.3.20.0100.00416.49
7.3.10.0020.01316.50
7.3.00.0040.00716.64
7.2.330.0100.00716.59
7.2.320.0090.01416.76
7.2.310.0070.01516.66
7.2.300.0030.01416.35
7.2.290.0070.01016.61
7.2.260.0120.00615.16
7.2.250.0140.00315.21
7.2.240.0070.01314.85
7.2.230.0070.00914.97
7.2.220.0040.01115.14
7.2.210.0030.01114.90
7.2.200.0050.00714.87
7.2.190.0080.00914.96
7.2.180.0030.01514.81
7.2.170.0050.01015.01
7.2.160.0040.01114.93
7.2.150.0100.00616.89
7.2.140.0080.00816.76
7.2.130.0040.00916.78
7.2.120.0040.00816.82
7.2.110.0140.00416.72
7.2.100.0040.01116.88
7.2.90.0100.00516.79
7.2.80.0040.01216.90
7.2.70.0010.00916.77
7.2.60.0070.00716.81
7.2.50.0030.01116.74
7.2.40.0080.00616.86
7.2.30.0070.00816.88
7.2.20.0060.01016.69
7.2.10.0090.00616.69
7.2.00.0030.00916.82
7.1.330.0090.00715.79
7.1.320.0100.00915.91
7.1.310.0050.00915.64
7.1.300.0070.01115.87
7.1.290.0080.00815.69
7.1.280.0030.01015.86
7.1.270.0100.00315.81
7.1.260.0060.00815.83
7.1.250.0030.01015.70
7.1.240.0040.00915.76
7.1.230.0090.00415.74
7.1.220.0050.00915.73
7.1.210.0040.01015.63
7.1.200.0050.00615.78
7.1.190.0020.01015.87
7.1.180.0030.01215.88
7.1.170.0030.01215.75
7.1.160.0060.00515.84
7.1.150.0050.00815.78
7.1.140.0090.00515.67
7.1.130.0020.00915.78
7.1.120.0040.01115.71
7.1.110.0030.00715.76
7.1.100.0030.00915.77
7.1.90.0070.00415.91
7.1.80.0070.00515.80
7.1.70.0040.00716.28
7.1.60.0050.00916.91
7.1.50.0070.01116.15
7.1.40.0050.00915.53
7.1.30.0080.00815.78
7.1.20.0050.00515.59
7.1.10.0030.00715.53
7.1.00.0010.02617.96
7.0.330.0070.00715.46
7.0.320.0080.00815.34
7.0.310.0080.00615.50
7.0.300.0080.00315.43
7.0.290.0060.00915.51
7.0.280.0050.00515.48
7.0.270.0080.00515.51
7.0.260.0030.00815.43
7.0.250.0070.00315.42
7.0.240.0060.00415.49
7.0.230.0030.01015.46
7.0.220.0050.00815.37
7.0.210.0040.00715.29
7.0.200.0040.00615.99
7.0.190.0020.01215.46
7.0.180.0080.00215.33
7.0.170.0020.01315.35
7.0.160.0020.01115.49
7.0.150.0060.00615.49
7.0.140.0040.03017.71
7.0.130.0010.01115.43
7.0.120.0030.00815.28
7.0.110.0060.00615.31
7.0.100.0020.00915.30
7.0.90.0030.00615.35
7.0.80.0250.02916.82
7.0.70.0250.03216.87
7.0.60.0200.01816.88
7.0.50.0220.02317.15
7.0.40.0060.03415.58
7.0.30.0090.02615.56
7.0.20.0070.03015.74
7.0.10.0040.03115.64
7.0.00.0060.01715.61
5.6.400.0020.00914.22
5.6.390.0040.01114.22
5.6.380.0020.01314.19
5.6.370.0040.01014.44
5.6.360.0020.01114.41
5.6.350.0050.01014.47
5.6.340.0050.00814.33
5.6.330.0080.00314.09
5.6.320.0080.00514.40
5.6.310.0030.00814.22
5.6.300.0050.00814.33
5.6.290.0090.00514.51
5.6.280.0050.03016.65
5.6.270.0080.00714.29
5.6.260.0020.01114.55
5.6.250.0050.00814.46
5.6.240.0070.00714.45
5.6.230.0100.01616.42
5.6.220.0120.02616.41
5.6.210.0110.02916.54
5.6.200.0020.03016.61
5.6.190.0090.03116.60
5.6.180.0090.01816.47
5.6.170.0070.03416.48
5.6.160.0020.02116.68
5.6.150.0080.02016.65
5.6.140.0060.02416.49
5.6.130.0030.03416.57
5.6.120.0090.03116.45
5.6.110.0080.03116.57
5.6.100.0070.03316.61
5.6.90.0090.01616.61
5.6.80.0040.02216.29
5.6.70.0030.02216.28
5.6.60.0020.02316.34
5.6.50.0090.01616.36
5.6.40.0050.02116.35
5.6.30.0060.01716.19
5.6.20.0070.02316.33
5.6.10.0030.02616.23
5.6.00.0040.01816.39
5.5.380.0060.00814.04
5.5.370.0070.02116.16
5.5.360.0060.02416.21
5.5.350.0060.03416.30
5.5.340.0050.03416.48
5.5.330.0040.02116.36
5.5.320.0020.03616.58
5.5.310.0040.03516.45
5.5.300.0040.02516.57
5.5.290.0070.02516.49
5.5.280.0050.03316.43
5.5.270.0050.02916.33
5.5.260.0020.03116.35
5.5.250.0070.01616.37
5.5.240.0050.01716.09
5.5.230.0080.01516.07
5.5.220.0120.01316.08
5.5.210.0040.01916.13
5.5.200.0070.01916.25
5.5.190.0040.02016.20
5.5.180.0050.02316.28
5.5.170.0030.00614.23
5.5.160.0030.03516.19
5.5.150.0080.02715.98
5.5.140.0060.03216.17
5.5.130.0060.01715.98
5.5.120.0010.01816.35
5.5.110.0010.02016.11
5.5.100.0060.01916.22
5.5.90.0070.02316.15
5.5.80.0020.01916.14
5.5.70.0070.01716.03
5.5.60.0060.01816.16
5.5.50.0020.01816.11
5.5.40.0060.01616.18
5.5.30.0010.01816.16
5.5.20.0070.01716.17
5.5.10.0040.01816.00
5.5.00.0080.01616.15
5.4.450.0080.03113.75
5.4.440.0090.02413.79
5.4.430.0060.03013.71
5.4.420.0070.02813.85
5.4.410.0050.01613.83
5.4.400.0040.01913.55
5.4.390.0040.01813.50
5.4.380.0040.01713.65
5.4.370.0010.01813.49
5.4.360.0070.01413.59
5.4.350.0070.01413.68
5.4.340.0040.01713.64
5.4.330.0060.00410.87
5.4.320.0020.01913.66
5.4.310.0070.02313.61
5.4.300.0070.02713.74
5.4.290.0050.02513.58
5.4.280.0020.02313.56
5.4.270.0020.02313.69
5.4.260.0020.01813.69
5.4.250.0090.01913.63
5.4.240.0050.01813.65
5.4.230.0050.01613.52
5.4.220.0040.01713.61
5.4.210.0030.02113.65
5.4.200.0060.01713.58
5.4.190.0040.01313.65
5.4.180.0070.01413.65
5.4.170.0010.02013.77
5.4.160.0040.01713.59
5.4.150.0030.02313.66
5.4.140.0060.01712.66
5.4.130.0040.01812.63
5.4.120.0030.01712.78
5.4.110.0040.01512.75
5.4.100.0040.01612.75
5.4.90.0040.01812.79
5.4.80.0030.01512.78
5.4.70.0060.01612.72
5.4.60.0030.01612.79
5.4.50.0070.01612.68
5.4.40.0040.01712.76
5.4.30.0050.01712.72
5.4.20.0040.01712.77
5.4.10.0020.02812.75
5.4.00.0090.02212.57
5.3.290.0030.02612.06
5.3.280.0010.03111.94
5.3.270.0050.01511.95
5.3.260.0060.01412.03
5.3.250.0010.01712.02
5.3.240.0020.01911.93
5.3.230.0020.01811.95
5.3.220.0020.01711.91
5.3.210.0020.01911.88
5.3.200.0020.01711.91
5.3.190.0020.01711.93
5.3.180.0010.02011.94
5.3.170.0040.01712.00
5.3.160.0040.01311.97
5.3.150.0040.01612.02
5.3.140.0040.01911.94
5.3.130.0040.01711.92
5.3.120.0060.02011.92
5.3.110.0060.01911.91
5.3.100.0080.02611.75
5.3.90.0040.02411.80
5.3.80.0020.03211.72
5.3.70.0070.02411.65
5.3.60.0040.02811.77
5.3.50.0060.02411.66
5.3.40.0020.02411.70
5.3.30.0050.02511.73
5.3.20.0040.01911.58
5.3.10.0050.02211.51
5.3.00.0030.02211.47
5.2.170.0070.03711.64
5.2.160.0100.06711.64
5.2.150.0100.03311.64
5.2.140.0070.06011.64
5.2.130.0100.05711.64
5.2.120.0000.05311.64
5.2.110.0100.06011.64
5.2.100.0070.03011.64
5.2.90.0030.06011.64
5.2.80.0000.06011.64
5.2.70.0070.06011.64
5.2.60.0030.06311.64
5.2.50.0100.04311.64
5.2.40.0030.03711.64
5.2.30.0030.04011.64
5.2.20.0030.03711.64
5.2.10.0030.05011.64
5.2.00.0070.06311.64
5.1.60.0000.04311.64
5.1.50.0070.05311.64
5.1.40.0100.05011.64
5.1.30.0100.03711.64
5.1.20.0030.06011.64
5.1.10.0070.06311.64
5.1.00.0100.05011.64
5.0.50.0070.04311.64
5.0.40.0030.04711.64
5.0.30.0030.06711.64
5.0.20.0070.04011.64
5.0.10.0030.03311.64
5.0.00.0030.04711.64
4.4.90.0070.03311.64
4.4.80.0030.03311.64
4.4.70.0000.03011.64
4.4.60.0000.03311.64
4.4.50.0030.02711.64
4.4.40.0030.05011.64
4.4.30.0030.03711.64
4.4.20.0070.03311.64
4.4.10.0070.03011.64
4.4.00.0000.05711.64
4.3.110.0000.03311.64
4.3.100.0000.04011.64
4.3.90.0000.03311.64
4.3.80.0030.05311.64
4.3.70.0030.03011.64
4.3.60.0030.03311.64
4.3.50.0030.03311.64
4.3.40.0070.04711.64
4.3.30.0030.02711.64
4.3.20.0000.03311.64
4.3.10.0030.03311.64
4.3.00.0000.03011.64

preferences:
56.83 ms | 401 KiB | 5 Q