3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = crypt ($pass); echo $hash."\n"; if (password_verify($pass, $hash)){ if (password_needs_rehash($hash, PASSWORD_DEFAULT)){ $hash = password_hash($pass, PASSWORD_DEFAULT); } } //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.0160.06116.72
7.2.00.0070.07319.53
7.1.200.0070.06715.75
7.1.100.0130.07317.99
7.1.70.0030.10416.86
7.1.60.0130.09919.43
7.1.50.0070.11716.94
7.1.00.0100.15322.29
7.0.200.0320.06514.95
7.0.60.0070.16019.93
7.0.50.0100.10017.79
7.0.40.0030.14320.31
7.0.30.0000.18020.09
7.0.20.0330.16020.07
7.0.10.0100.11720.05
7.0.00.0130.14720.32
5.6.280.0030.08720.81
5.6.210.0030.11720.47
5.6.200.0100.16718.19
5.6.190.0030.15720.50
5.6.180.0430.11320.49
5.6.170.0230.10320.46
5.6.160.0030.11020.48
5.6.150.0100.09718.20
5.6.140.0030.11718.27
5.6.130.0130.15718.11
5.6.120.0130.16721.18
5.6.110.0070.15720.93
5.6.100.0100.16321.11
5.6.90.0030.13720.92
5.6.80.0200.14720.42
5.5.350.0300.15020.30
5.5.340.0130.14718.02
5.5.330.0100.10020.21
5.5.320.0130.13320.23
5.5.310.0200.16720.50
5.5.300.0030.11717.94
5.5.290.0070.15717.88
5.5.280.0100.16320.68
5.5.270.0030.15720.64
5.5.260.0170.11720.64
5.5.250.0070.11320.68
5.5.240.0100.09720.23
5.4.450.0130.06019.51
5.4.440.0130.06019.11
5.4.430.0200.05319.60
5.4.420.0100.06019.53
5.4.410.0270.04019.48
5.4.400.0200.05019.09
5.4.390.0070.06019.25
5.4.380.0170.04719.20
5.4.370.0230.04718.92
5.4.360.0200.05019.08
5.4.350.0070.06719.26
5.4.340.0170.05719.00
5.4.320.0170.05319.32
5.4.310.0070.06019.00
5.4.300.0230.04719.27
5.4.290.0130.05719.22
5.4.280.0100.06718.91
5.4.270.0170.05718.77
5.4.260.0070.06018.94
5.4.250.0200.04719.07
5.4.240.0170.05019.25
5.4.230.0070.06018.98
5.4.220.0270.04318.81
5.4.210.0170.05018.80
5.4.200.0300.06019.18
5.4.190.0130.06318.91
5.4.180.0130.05319.21
5.4.170.0400.05719.15
5.4.160.0230.06319.27
5.4.150.0230.07318.92
5.4.140.0170.05316.22
5.4.130.0200.07016.24
5.4.120.0200.07016.19
5.4.110.0270.04716.38
5.4.100.0300.04716.50
5.4.90.0070.05716.07
5.4.80.0200.05016.48
5.4.70.0070.05716.28
5.4.60.0130.04716.36
5.4.50.0200.04016.15
5.4.40.0170.04316.46
5.4.30.0100.05016.52
5.4.20.0230.06016.51
5.4.10.0570.05716.44
5.4.00.0570.06015.64

preferences:
38.39 ms | 401 KiB | 5 Q