3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = crypt ($pass); echo $hash."\n"; if (password_verify('me', $hash)){ if (password_needs_rehash($hash, PASSWORD_DEFAULT)){ $hash = password_hash($pass, PASSWORD_DEFAULT); } echo "good \n"; } //echo password_verify($pass, $hash)."\n"; echo $hash."\n";

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)
7.2.60.0110.00416.86
7.2.00.0070.00719.55
7.1.200.0100.00315.65
7.1.100.0140.01018.21
7.1.70.0030.00517.27
7.1.60.0100.01319.43
7.1.50.0000.01717.05
7.1.00.0030.08022.45
7.0.200.0350.00914.65
7.0.60.0100.08019.86
7.0.50.0100.08317.80
7.0.40.0100.04020.12
7.0.30.0000.08720.21
7.0.20.0370.07320.19
7.0.10.0030.07020.05
7.0.00.0000.08020.33
5.6.280.0000.06021.13
5.6.210.0070.08020.46
5.6.200.0100.08718.21
5.6.190.0070.06320.48
5.6.180.0200.06320.27
5.6.170.0230.04720.38
5.6.160.0100.07720.46
5.6.150.0030.04018.18
5.6.140.0100.05718.17
5.6.130.0070.07718.20
5.6.120.0070.04320.99
5.6.110.0130.07721.05
5.6.100.0030.08721.02
5.6.90.0170.06020.97
5.6.80.0030.05320.41
5.5.350.0270.06720.49
5.5.340.0100.07717.95
5.5.330.0070.09020.40
5.5.320.0300.07320.34
5.5.310.0230.08320.30
5.5.300.0000.04317.88
5.5.290.0030.06317.98
5.5.280.0130.07720.86
5.5.270.0030.09020.96
5.5.260.0030.04720.80
5.5.250.0070.06720.57
5.5.240.0100.03320.19
5.4.450.0130.06319.50
5.4.440.0170.05319.34
5.4.430.0130.05719.47
5.4.420.0170.05719.37
5.4.410.0270.04319.16
5.4.400.0170.07319.20
5.4.390.0200.07018.78
5.4.380.0230.05719.21
5.4.370.0200.04718.91
5.4.360.0100.06019.28
5.4.350.0200.04719.16
5.4.340.0130.05319.13
5.4.320.0130.05719.17
5.4.310.0100.05719.25
5.4.300.0130.05019.31
5.4.290.0070.06019.11
5.4.280.0030.06319.19
5.4.270.0100.05719.14
5.4.260.0230.04319.16
5.4.250.0070.06019.08
5.4.240.0030.06318.99
5.4.230.0230.04318.77
5.4.220.0170.08018.91
5.4.210.0170.07718.91
5.4.200.0070.06018.80
5.4.190.0100.05719.25
5.4.180.0200.04718.77
5.4.170.0130.05319.25
5.4.160.0100.05318.80
5.4.150.0170.05319.23
5.4.140.0070.05716.38
5.4.130.0130.05016.38
5.4.120.0100.05316.29
5.4.110.0230.04316.52
5.4.100.0130.05016.50
5.4.90.0170.04716.48
5.4.80.0100.05016.48
5.4.70.0170.04716.20
5.4.60.0130.05016.48
5.4.50.0130.04716.26
5.4.40.0200.04316.51
5.4.30.0200.04716.46
5.4.20.0170.05316.36
5.4.10.0170.05016.44
5.4.00.0200.04315.90

preferences:
38.39 ms | 401 KiB | 5 Q