3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param $passwordHash * @return bool|string */ function passwordNeedsRehash($passwordHash) { if (password_needs_rehash($passwordHash, PASSWORD_DEFAULT, []) { return true; } return $this->forceRehash; }

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.0.20.0270.05320.24
7.0.10.0000.07320.12
7.0.00.0030.04720.13
5.6.170.0130.04720.58
5.6.160.0070.06020.44
5.6.150.0030.08718.15
5.6.140.0100.06718.18
5.6.130.0030.08318.21
5.6.120.0130.07721.00
5.6.110.0100.06021.01
5.6.100.0130.07321.01
5.6.90.0070.07321.13
5.6.80.0070.07720.54
5.5.310.0230.06320.23
5.5.300.0030.05317.92
5.5.290.0070.08318.01
5.5.280.0070.05020.79
5.5.270.0030.04320.67
5.5.260.0070.07020.96
5.5.250.0030.06720.66
5.5.240.0230.07020.19

preferences:
136.19 ms | 1394 KiB | 7 Q