3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hashed_password = crypt('superadmin', '$r!lanka'); // let the salt be automatically generated echo $hashed_password;exit; if (hash_equals($hashed_password, crypt($user_input, $hashed_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.0120.00918.43
8.3.50.0100.00718.18
8.3.40.0070.00718.89
8.3.30.0090.00618.62
8.3.20.0040.00420.39
8.3.10.0070.00023.54
8.3.00.0050.00319.26
8.2.180.0190.00318.17
8.2.170.0070.00722.96
8.2.160.0100.00320.43
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0060.00317.60
8.2.120.0040.00426.35
8.2.110.0080.00319.25
8.2.100.0030.00918.03
8.2.90.0050.00319.21
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0040.00419.38
8.2.30.0030.00320.50
8.2.20.0080.00017.68
8.2.10.0030.00617.93
8.2.00.0060.00317.95
8.1.270.0000.00823.91
8.1.260.0000.00828.09
8.1.250.0060.00328.09
8.1.240.0040.00419.07
8.1.230.0110.00019.10
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0000.00717.70
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0030.00321.85
8.1.150.0040.00418.83
8.1.140.0050.00319.52
8.1.130.0070.00017.54
8.1.120.0040.00417.40
8.1.110.0080.00017.42
8.1.100.0080.00017.30
8.1.90.0000.00717.39
8.1.80.0070.00017.38
8.1.70.0080.00017.38
8.1.60.0000.00817.52
8.1.50.0040.00417.54
8.1.40.0040.00417.55
8.1.30.0040.00417.58
8.1.20.0070.00017.49
8.1.10.0040.00417.46
8.1.00.0030.00617.43
8.0.300.0000.00818.77
8.0.290.0080.00016.63
8.0.280.0000.00718.44
8.0.270.0070.00017.25
8.0.260.0030.00317.16
8.0.250.0040.00416.98
8.0.240.0080.00016.90
8.0.230.0040.00417.00
8.0.220.0030.00316.77
8.0.210.0000.00716.84
8.0.200.0030.00317.01
8.0.190.0040.00416.95
8.0.180.0070.00016.92
8.0.170.0060.00316.80
8.0.160.0040.00416.91
8.0.150.0080.00016.93
8.0.140.0000.00716.77
8.0.130.0000.00513.36
8.0.120.0000.00816.90
8.0.110.0000.00716.93
8.0.100.0030.00516.79
8.0.90.0050.00316.85
8.0.80.0100.00716.84
8.0.70.0070.00016.84
8.0.60.0000.00816.80
8.0.50.0040.00416.85
8.0.30.0110.01116.97
8.0.20.0100.01117.40
8.0.10.0040.00416.83
8.0.00.0080.01016.88
7.4.330.0000.00516.73
7.4.320.0070.00016.64
7.4.300.0030.00316.51
7.4.290.0060.00316.60
7.4.280.0000.00716.54
7.4.270.0050.00316.48
7.4.260.0030.00316.62
7.4.250.0000.00816.46
7.4.240.0000.00916.47
7.4.230.0030.00316.68
7.4.220.0070.01416.52
7.4.210.0090.00716.49
7.4.200.0040.00416.64
7.4.160.0110.00616.61
7.4.150.0000.01717.40
7.4.140.0130.00717.86
7.4.130.0090.00916.61
7.4.120.0120.00616.50
7.4.110.0030.01616.63
7.4.100.0040.01916.40
7.4.90.0100.00616.29
7.4.80.0140.00919.39
7.4.70.0220.00316.34
7.4.60.0070.01016.41
7.4.50.0060.00916.55
7.4.40.0170.00716.57
7.4.30.0070.01016.51
7.4.00.0080.00814.88
7.3.330.0030.00313.17
7.3.320.0000.00613.11
7.3.310.0040.00416.41
7.3.300.0030.00316.33
7.3.290.0110.00516.33
7.3.280.0090.00616.29
7.3.270.0070.01017.40
7.3.260.0100.00716.58
7.3.250.0130.00716.54
7.3.240.0090.01016.30
7.3.230.0040.01716.64
7.3.210.0140.00716.50
7.3.200.0060.01716.59
7.3.190.0030.01316.37
7.3.180.0110.00616.57
7.3.170.0160.00616.29
7.3.160.0100.01516.41
7.3.10.0030.01316.74
7.3.00.0190.00016.75
7.2.330.0070.01016.73
7.2.320.0030.01316.48
7.2.310.0040.01216.36
7.2.300.0130.00416.57
7.2.290.0170.00016.48
7.2.130.0030.01216.94
7.2.120.0090.00916.95
7.2.110.0120.00816.96
7.2.100.0100.00717.04
7.2.90.0030.00716.79
7.2.80.0060.00616.71
7.2.70.0030.01317.13
7.2.60.0040.00816.86
7.2.50.0100.01016.79
7.2.40.0060.00916.80
7.2.30.0100.00716.78
7.2.20.0070.00716.83
7.2.10.0030.00717.10
7.2.00.0000.01318.04
7.1.250.0120.00815.54
7.1.200.0040.00815.83
7.1.100.0050.00518.25
7.1.70.0020.00517.10
7.1.60.0030.02119.36
7.1.50.0130.01016.58
7.1.00.0070.07022.46
7.0.200.0100.00016.56
7.0.60.0130.04720.04
7.0.50.0030.04317.95
7.0.40.0030.05720.30
7.0.30.0170.05720.40
7.0.20.0270.04320.27
7.0.10.0030.04320.18
7.0.00.0070.07720.10
5.6.280.0030.07021.09
5.6.210.0100.05720.67
5.6.200.0030.04018.29
5.6.190.0000.06020.52
5.6.180.0230.07720.73
5.6.170.0270.03720.50
5.6.160.0070.04720.77
5.6.150.0100.07718.27
5.6.140.0170.06718.23
5.6.130.0070.08318.24
5.6.120.0030.07321.02
5.6.110.0130.08321.04
5.6.100.0030.04321.14
5.6.90.0100.08021.02
5.6.80.0100.08320.45
5.5.350.0230.06720.55
5.5.340.0030.08717.95
5.5.330.0070.05720.49
5.5.320.0030.06720.36
5.5.310.0270.07720.24
5.5.300.0030.04018.04
5.5.290.0130.07318.09
5.5.280.0070.04020.71
5.5.270.0070.08320.91
5.5.260.0100.06020.82
5.5.250.0200.07320.50
5.5.240.4130.03320.20

preferences:
57.69 ms | 400 KiB | 5 Q