3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pass='test'; $hash = crypt ($pass); echo $hash."\n"; if (password_needs_rehash($hash, PASSWORD_DEFAULT)){ $hash = password_hash($pass, PASSWORD_DEFAULT); } echo password_verify($pass, $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.3.120.0070.13514.92
7.3.110.0070.12914.83
7.3.100.0030.13514.75
7.3.90.0070.12814.68
7.3.80.0070.12814.84
7.3.70.0030.13214.65
7.3.60.0000.13414.68
7.3.50.0070.13314.80
7.3.40.0070.13114.71
7.3.30.0030.13714.83
7.3.20.0070.12916.66
7.3.10.0030.13216.72
7.3.00.0070.12716.59
7.2.240.0000.14315.27
7.2.230.0030.13515.02
7.2.220.0100.12814.90
7.2.210.0100.12414.90
7.2.200.0030.13214.76
7.2.190.0000.13615.08
7.2.180.0130.12115.04
7.2.170.0030.13415.07
7.2.160.0070.13215.04
7.2.150.0070.13417.05
7.2.140.0000.13517.00
7.2.130.0070.12916.83
7.2.120.0030.13516.54
7.2.110.0100.12516.94
7.2.100.0070.12816.67
7.2.90.0100.12117.02
7.2.80.0130.12216.86
7.2.70.0030.13216.66
7.2.60.0070.13316.87
7.2.50.0100.12317.03
7.2.40.0070.13316.96
7.2.30.0070.12517.06
7.2.20.0030.13517.07
7.2.10.0030.13517.03
7.2.00.0120.12618.20
7.1.330.0000.13715.71
7.1.320.0000.13715.78
7.1.310.0030.12915.87
7.1.300.0070.12615.61
7.1.290.0070.13115.67
7.1.280.0030.13215.82
7.1.270.0000.13815.78
7.1.260.0000.13415.74
7.1.250.0030.13415.66
7.1.200.0030.13415.71
7.1.100.0190.12618.19
7.1.70.0000.14317.15
7.1.60.0200.13519.43
7.1.50.0070.17816.71
7.1.00.0070.22722.33
7.0.200.0140.13014.92
7.0.60.0200.21020.04
7.0.50.0070.22317.84
7.0.40.0070.23019.85
7.0.30.0000.22720.10
7.0.20.0300.21720.33
7.0.10.0030.22720.07
7.0.00.0000.16720.06
5.6.280.0000.22720.82
5.6.210.0170.18720.69
5.6.200.0130.22718.16
5.6.190.0100.22320.60
5.6.180.0570.20320.41
5.6.170.0270.20020.36
5.6.160.0100.22720.45
5.6.150.0130.20718.08
5.6.140.0030.16318.26
5.6.130.0070.17018.18
5.6.120.0130.20721.00
5.6.110.0170.20321.11
5.6.100.0070.23320.95
5.6.90.0100.18720.96
5.6.80.0100.21020.38
5.5.350.0330.16320.31
5.5.340.0130.21017.99
5.5.330.0200.16020.06
5.5.320.0300.19720.34
5.5.310.0200.22020.30
5.5.300.0070.16718.02
5.5.290.0030.20017.98
5.5.280.0030.16020.73
5.5.270.0070.17020.93
5.5.260.0070.16720.79
5.5.250.0100.20020.55
5.5.240.0000.13320.18
5.4.450.0230.04719.12
5.4.440.0030.07019.47
5.4.430.0330.06319.62
5.4.420.0130.05719.44
5.4.410.0300.03719.11
5.4.400.0070.06019.16
5.4.390.0330.03719.29
5.4.380.0170.06018.91
5.4.370.0230.04319.21
5.4.360.0170.06019.12
5.4.350.0100.05719.27
5.4.340.0100.06019.25
5.4.320.0170.05318.91
5.4.310.0170.05019.25
5.4.300.0100.05718.94
5.4.290.0230.06019.12
5.4.280.0130.05719.14
5.4.270.0230.04319.17
5.4.260.0200.05019.29
5.4.250.0170.05318.98
5.4.240.0230.04719.13
5.4.230.0130.05319.25
5.4.220.0170.05319.15
5.4.210.0130.05318.80
5.4.200.0130.06719.13
5.4.190.0170.05019.24
5.4.180.0100.05718.98
5.4.170.0130.05319.24
5.4.160.0200.04719.13
5.4.150.0130.05319.06
5.4.140.0100.06716.20
5.4.130.0130.05316.26
5.4.120.0200.05016.17
5.4.110.0170.05016.29
5.4.100.0130.05016.52
5.4.90.0170.04716.22
5.4.80.0130.05016.47
5.4.70.0130.04716.35
5.4.60.0170.04716.47
5.4.50.0130.06016.27
5.4.40.0200.04316.51
5.4.30.0130.05016.48
5.4.20.0230.04016.46
5.4.10.0170.05316.47
5.4.00.0100.05715.94

preferences:
31.24 ms | 401 KiB | 5 Q