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.70.0140.00716.58
8.3.60.0140.00718.55
8.3.50.0080.01021.98
8.3.40.0040.01118.79
8.3.30.0140.00018.84
8.3.20.0000.00818.69
8.3.10.0070.00021.22
8.3.00.0000.00723.57
8.2.180.0070.00716.75
8.2.170.0100.00722.96
8.2.160.0070.00720.45
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0110.00421.00
8.2.110.0080.00020.52
8.2.100.0080.00317.72
8.2.90.0000.00819.23
8.2.80.0070.00019.25
8.2.70.0080.00317.50
8.2.60.0080.00317.55
8.2.50.0090.00518.07
8.2.40.0000.00817.97
8.2.30.0040.00419.37
8.2.20.0030.00617.71
8.2.10.0030.00517.72
8.2.00.0050.00317.71
8.1.280.0140.00325.92
8.1.270.0030.00623.99
8.1.260.0140.00326.35
8.1.250.0070.00028.09
8.1.240.0100.00322.53
8.1.230.0070.00420.97
8.1.220.0000.00918.77
8.1.210.0090.00018.77
8.1.200.0090.00017.35
8.1.190.0000.00717.41
8.1.180.0000.00818.10
8.1.170.0030.00518.52
8.1.160.0040.00418.83
8.1.150.0040.00418.42
8.1.140.0050.00217.26
8.1.130.0070.00017.82
8.1.120.0000.00817.38
8.1.110.0030.00517.34
8.1.100.0040.00417.42
8.1.90.0070.00017.42
8.1.80.0050.00217.43
8.1.70.0030.00317.33
8.1.60.0000.00817.43
8.1.50.0040.00417.45
8.1.40.0070.00017.40
8.1.30.0070.00017.66
8.1.20.0040.00417.60
8.1.10.0070.00017.57
8.1.00.0000.00917.54
8.0.300.0070.00019.91
8.0.290.0040.00416.93
8.0.280.0050.00218.33
8.0.270.0070.00017.12
8.0.260.0030.00316.72
8.0.250.0070.00016.98
8.0.240.0050.00316.86
8.0.230.0080.00016.95
8.0.220.0050.00316.75
8.0.210.0000.00716.87
8.0.200.0000.00616.96
8.0.190.0080.00016.96
8.0.180.0000.00816.91
8.0.170.0040.00416.95
8.0.160.0040.00416.88
8.0.150.0050.00316.82
8.0.140.0030.00616.85
8.0.130.0000.00513.37
8.0.120.0080.00016.75
8.0.110.0000.00716.87
8.0.100.0030.00316.85
8.0.90.0040.00416.90
8.0.80.0090.00616.83
8.0.70.0070.00017.00
8.0.60.0050.00216.95
8.0.50.0050.00216.77
8.0.30.0110.01116.84
8.0.20.0180.00417.40
8.0.10.0000.00716.93
8.0.00.0070.01116.59
7.4.330.0030.00314.98
7.4.320.0000.00716.50
7.4.300.0040.00416.52
7.4.290.0040.00416.44
7.4.280.0050.00316.46
7.4.270.0080.00016.48
7.4.260.0030.00313.26
7.4.250.0040.00416.48
7.4.240.0000.00716.50
7.4.230.0030.00316.59
7.4.220.0120.00916.38
7.4.210.0060.00816.58
7.4.200.0000.00816.38
7.4.190.0040.00416.75
7.4.160.0090.00616.31
7.4.150.0140.00617.40
7.4.140.0150.00617.86
7.4.130.0090.01016.52
7.4.120.0120.00616.57
7.4.110.0090.00916.59
7.4.100.0100.00716.53
7.4.90.0100.01316.64
7.4.80.0120.00919.39
7.4.70.0080.01516.55
7.4.60.0120.00916.56
7.4.50.0060.00016.55
7.4.40.0070.01122.77
7.4.30.0060.01216.31
7.4.10.0130.00714.73
7.4.00.0080.00914.89
7.3.330.0030.00313.16
7.3.320.0070.00013.10
7.3.310.0000.00716.32
7.3.300.0000.00716.30
7.3.290.0110.00416.38
7.3.280.0090.00716.26
7.3.270.0060.01117.40
7.3.260.0130.00918.24
7.3.250.0100.01116.45
7.3.240.0090.00916.14
7.3.230.0060.01116.39
7.3.210.0100.00716.35
7.3.200.0040.01319.39
7.3.190.0030.01416.56
7.3.180.0030.01216.25
7.3.170.0060.00916.47
7.3.160.0170.00016.34
7.3.130.0080.01214.93
7.3.120.0100.00814.82
7.3.110.0050.01314.87
7.3.100.0090.00614.69
7.3.90.0120.00314.91
7.3.80.0030.00814.54
7.3.70.0060.00614.79
7.3.60.0070.00714.78
7.3.50.0060.00914.81
7.3.40.0060.00914.72
7.3.30.0040.00514.70
7.3.20.0050.00916.69
7.3.10.0040.00916.63
7.3.00.0050.00716.68
7.2.330.0090.01016.32
7.2.320.0060.01716.67
7.2.310.0120.00616.32
7.2.300.0100.00716.55
7.2.290.0110.00616.55
7.2.260.0110.00715.17
7.2.250.0050.01314.89
7.2.240.0090.00814.75
7.2.230.0040.01214.94
7.2.220.0030.01314.99
7.2.210.0050.00914.93
7.2.200.0050.01214.87
7.2.190.0110.00615.04
7.2.180.0080.00614.84
7.2.170.0100.00214.82
7.2.160.0070.00415.01
7.2.150.0040.00716.90
7.2.140.0070.00716.82
7.2.130.0070.00916.93
7.2.120.0060.00316.88
7.2.110.0050.00716.80
7.2.100.0040.00916.78
7.2.90.0080.00916.54
7.2.80.0090.01116.84
7.2.70.0070.00716.80
7.2.60.0090.00516.80
7.2.50.0050.00916.73
7.2.40.0060.00616.96
7.2.30.0020.01016.96
7.2.20.0080.00716.69
7.2.10.0080.00816.94
7.2.00.0070.00617.72
7.1.330.0060.00915.62
7.1.320.0070.00815.51
7.1.310.0040.00615.81
7.1.300.0120.00515.64
7.1.290.0100.00315.77
7.1.280.0040.01215.73
7.1.270.0000.01215.80
7.1.260.0100.00515.71
7.1.250.0050.01015.84
7.1.240.0040.00915.64
7.1.230.0050.00415.62
7.1.220.0030.01015.57
7.1.210.0050.00915.56
7.1.200.0030.00915.78
7.1.190.0050.00515.78
7.1.180.0040.00815.84
7.1.170.0080.00515.80
7.1.160.0090.00215.74
7.1.150.0030.00915.55
7.1.140.0060.00915.68
7.1.130.0090.00715.90
7.1.120.0050.00615.68
7.1.110.0070.00615.63
7.1.100.0040.01016.59
7.1.90.0030.00715.95
7.1.80.0020.00915.85
7.1.70.0060.00516.21
7.1.60.0080.00416.16
7.1.50.0040.00816.23
7.1.40.0070.00615.93
7.1.30.0050.00815.89
7.1.20.0080.00316.04
7.1.10.0060.00715.81
7.1.00.0050.00715.99
7.0.330.0060.00715.26
7.0.320.0060.00615.47
7.0.310.0100.00715.14
7.0.300.0040.00715.32
7.0.290.0030.01015.35
7.0.280.0060.00815.34
7.0.270.0100.00715.38
7.0.260.0020.00815.33
7.0.250.0080.00615.54
7.0.240.0050.00515.34
7.0.230.0020.00915.46
7.0.220.0080.00315.32
7.0.210.0080.00615.39
7.0.200.0020.01115.91
7.0.190.0060.00615.82
7.0.180.0050.00515.69
7.0.170.0060.00515.66
7.0.160.0060.00615.74
7.0.150.0080.00515.57
7.0.140.0060.00515.64
7.0.130.0030.00615.70
7.0.120.0020.00915.75
7.0.110.0060.00615.71
7.0.100.0050.00515.59
7.0.90.0030.00715.67
7.0.80.0040.00615.77
7.0.70.0010.01015.61
7.0.60.0070.00615.57
7.0.50.0030.00715.75
7.0.40.0070.00414.37
7.0.30.0010.01014.33
7.0.20.0020.00914.28
7.0.10.0020.00914.30
7.0.00.0040.00514.21
5.6.400.0110.00414.35
5.6.390.0000.01414.36
5.6.380.0060.00414.06
5.6.370.0030.01014.33
5.6.360.0070.00714.38
5.6.350.0040.00714.30
5.6.340.0080.01014.15
5.6.330.0050.01014.04
5.6.320.0040.00714.43
5.6.310.0020.01114.26
5.6.300.0070.01716.65
5.6.290.0040.01716.46
5.6.280.0080.01616.43
5.6.270.0050.02016.63
5.6.260.0070.02016.54
5.6.250.0070.01916.54
5.6.240.0080.01516.47
5.6.230.0050.01916.46
5.6.220.0040.01916.48
5.6.210.0080.02116.53
5.6.200.0070.01916.44
5.6.190.0020.02016.55
5.6.180.0130.01616.59
5.6.170.0080.01916.56
5.6.160.0030.02516.46
5.6.150.0070.01716.44
5.6.140.0040.02116.53
5.6.130.0050.01816.40
5.6.120.0060.01916.57
5.6.110.0050.02416.40
5.6.100.0030.02116.53
5.6.90.0050.02016.55
5.6.80.0040.02016.31
5.6.70.0090.02916.23
5.6.60.0070.01516.27
5.6.50.0030.01916.42
5.6.40.0060.01716.18
5.6.30.0020.02216.29
5.6.20.0060.01816.29
5.6.10.0030.01816.40
5.6.00.0040.01816.26
5.5.380.0050.01514.21
5.5.370.0050.01914.36
5.5.360.0040.02014.16
5.5.350.0050.01714.26
5.5.340.0060.01614.58
5.5.330.0030.02114.42
5.5.320.0060.01514.45
5.5.310.0040.02014.47
5.5.300.0020.02114.42
5.5.290.0090.01414.49
5.5.280.0060.01814.35
5.5.270.0060.01614.30
5.5.260.0030.02114.33
5.5.250.0010.02114.40
5.5.240.0070.01714.18
5.5.230.0080.01614.13
5.5.220.0020.01914.27
5.5.210.0060.01614.22
5.5.200.0030.01514.12
5.5.190.0050.01814.27
5.5.180.0050.02014.21
5.5.170.0040.00612.47
5.5.160.0020.01714.24
5.5.150.0040.01814.21
5.5.140.0030.01814.29
5.5.130.0080.01414.12
5.5.120.0020.02014.30
5.5.110.0020.01814.22
5.5.100.0050.02614.08
5.5.90.0050.02214.22
5.5.80.0010.01914.12
5.5.70.0020.01714.12
5.5.60.0040.01714.02
5.5.50.0030.01414.22
5.5.40.0050.01714.12
5.5.30.0050.02214.28
5.5.20.0030.02014.25
5.5.10.0040.01714.12
5.5.00.0060.01814.15
5.4.450.0020.01913.63
5.4.440.0010.02113.75
5.4.430.0050.01413.79
5.4.420.0060.01513.82
5.4.410.0050.01613.71
5.4.400.0070.01613.81
5.4.390.0050.01813.68
5.4.380.0050.01913.65
5.4.370.0010.02413.71
5.4.360.0000.02113.67
5.4.350.0020.01813.62
5.4.340.0030.02213.66
5.4.330.0010.00610.93
5.4.320.0060.01513.68
5.4.310.0030.01613.69
5.4.300.0020.01913.56
5.4.290.0030.01713.72
5.4.280.0020.01913.74
5.4.270.0030.01613.65
5.4.260.0040.01613.63
5.4.250.0050.01813.50
5.4.240.0060.01613.69
5.4.230.0110.02013.58
5.4.220.0000.02513.69
5.4.210.0050.01713.62
5.4.200.0020.01713.70
5.4.190.0020.02113.57
5.4.180.0030.01813.64
5.4.170.0030.02013.63
5.4.160.0040.01913.65
5.4.150.0030.01613.68
5.4.140.0070.01712.79
5.4.130.0040.01712.93
5.4.120.0050.01612.79
5.4.110.0040.01512.75
5.4.100.0040.01412.91
5.4.90.0040.01412.84
5.4.80.0010.03112.87
5.4.70.0030.01912.80
5.4.60.0100.01412.76
5.4.50.0010.01912.75
5.4.40.0050.01412.79
5.4.30.0060.01312.78
5.4.20.0020.01712.79
5.4.10.0040.01512.87
5.4.00.0050.01412.68
5.3.290.0040.01812.60
5.3.280.0010.01912.57
5.3.270.0020.01912.60
5.3.260.0040.01412.52
5.3.250.0030.01612.57
5.3.240.0010.02312.52
5.3.230.0020.01912.54
5.3.220.0010.02112.53
5.3.210.0010.02712.52
5.3.200.0030.01712.52
5.3.190.0020.02312.52
5.3.180.0030.01512.56
5.3.170.0020.01912.55
5.3.160.0030.01912.56
5.3.150.0020.02312.56
5.3.140.0010.01712.52
5.3.130.0040.01512.53
5.3.120.0050.01812.52
5.3.110.0040.01412.55
5.3.100.0010.01812.52
5.3.90.0030.01712.52
5.3.80.0050.01512.52
5.3.70.0010.02112.52
5.3.60.0050.01612.52
5.3.50.0030.01712.52
5.3.40.0060.01712.52
5.3.30.0040.02212.52
5.3.20.0010.01812.52
5.3.10.0020.01712.52
5.3.00.0010.02912.52
5.2.170.0030.01813.59
5.2.160.0000.02213.59
5.2.150.0040.01713.59
5.2.140.0040.01713.59
5.2.130.0040.01613.59
5.2.120.0030.01813.59
5.2.110.0060.01313.59
5.2.100.0000.02113.59
5.2.90.0130.01313.59
5.2.80.0000.02013.59
5.2.70.0020.01713.59
5.2.60.0020.01813.59
5.2.50.0020.02013.59
5.2.40.0050.01513.59
5.2.30.0020.02313.59
5.2.20.0010.03613.59
5.2.10.0030.02513.59
5.2.00.0060.01213.59
5.1.60.0030.02013.59
5.1.50.0020.01913.59
5.1.40.0030.01713.59
5.1.30.0040.01213.59
5.1.20.0080.02113.59
5.1.10.0000.01713.59
5.1.00.0050.01313.59
5.0.50.0030.01213.59
5.0.40.0020.01513.59
5.0.30.0000.02213.59
5.0.20.0020.01113.59
5.0.10.0000.01613.59
5.0.00.0020.02613.59
4.4.90.0050.00913.59
4.4.80.0040.01013.59
4.4.70.0020.01313.59
4.4.60.0000.01113.59
4.4.50.0020.00813.59
4.4.40.0030.01313.59
4.4.30.0000.01313.59
4.4.20.0020.01013.59
4.4.10.0020.01313.59
4.4.00.0010.01713.59
4.3.110.0020.01113.59
4.3.100.0030.00913.59
4.3.90.0020.01013.59
4.3.80.0000.02313.59
4.3.70.0020.01213.59
4.3.60.0040.00813.59
4.3.50.0020.00813.59
4.3.40.0030.01913.59
4.3.30.0050.01713.59
4.3.20.0000.01313.59
4.3.10.0000.02313.59
4.3.00.0020.01513.59

preferences:
52.27 ms | 401 KiB | 5 Q