3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = 'test'; $password = '1234'; $hash = password_hash($password, PASSWORD_BCRYPT); echo "Hash: " . $hash . PHP_EOL; echo strlen($hash) . PHP_EOL; echo strlen(md5($password)) . PHP_EOL; if (password_verify($password, $hash)) { echo "Valid"; }

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.0070.13116.81
7.2.00.0000.13519.47
7.1.200.0070.12915.45
7.1.100.0070.12917.74
7.1.70.0000.13117.20
7.1.60.0070.12520.03
7.1.50.0030.19616.71
7.1.00.0100.21022.28
7.0.200.0070.13216.85
7.0.60.0100.22319.93
7.0.50.0100.21317.86
7.0.40.0030.17320.40
7.0.30.0530.20720.32
7.0.20.0100.16720.30
7.0.10.0030.23020.12
7.0.00.0070.22320.09
5.6.280.0000.21321.04
5.6.210.0030.18320.70
5.6.200.0100.21018.29
5.6.190.0070.21320.45
5.6.180.3930.16020.63
5.6.170.0370.16320.64
5.6.160.0130.21320.54
5.6.150.0070.22018.20
5.6.140.0030.17018.27
5.6.130.0100.19318.16
5.6.120.0100.23020.98
5.6.110.0170.20321.02
5.6.100.0070.22720.88
5.6.90.0030.22320.99
5.6.80.0070.22320.39
5.6.70.4170.16320.53
5.5.350.0000.19020.41
5.5.340.0030.15717.96
5.5.330.0100.20320.29
5.5.320.0270.16020.24
5.5.310.0300.22320.23
5.5.300.0100.18018.01
5.5.290.0030.16318.08
5.5.280.0030.22320.77
5.5.270.0200.19720.88
5.5.260.0130.21720.97
5.5.250.0030.20720.76
5.5.240.0400.19320.28
5.4.450.0300.05319.10
5.4.440.0330.06019.10
5.4.430.0300.05019.46
5.4.420.0230.06319.40
5.4.410.0270.06019.34
5.4.400.0300.05719.31
5.4.390.0330.05319.33
5.4.380.0230.05718.95
5.4.370.0470.04719.30
5.4.360.0470.05319.15
5.4.350.0330.05319.16
5.4.340.0370.05019.16
5.4.320.0270.05719.16
5.4.310.0370.05719.23
5.4.300.0270.05319.15
5.4.290.0270.06318.82
5.4.280.0400.05318.93
5.4.270.0430.04318.99
5.4.260.0400.08019.22
5.4.250.0400.04018.94
5.4.240.0470.05719.30
5.4.230.0370.05019.27
5.4.220.0230.06019.13
5.4.210.0200.06018.82
5.4.200.0300.05316.64
5.4.190.0430.04718.82
5.4.180.0300.07019.28
5.4.170.0270.06018.84
5.4.160.0270.05318.94
5.4.150.0230.06019.28
5.4.140.0300.07316.48
5.4.130.0270.05016.50
5.4.120.0270.05016.47
5.4.110.0270.05316.28
5.4.100.0230.05716.22
5.4.90.0330.05316.47
5.4.80.0470.06016.43
5.4.70.0330.07016.32
5.4.60.0300.05716.49
5.4.50.0300.05016.29
5.4.40.0300.05016.44
5.4.30.0270.05316.41
5.4.20.0400.05016.46
5.4.10.0270.06016.39
5.4.00.0230.07315.76

preferences:
31.01 ms | 401 KiB | 5 Q