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, $this->getOptions()) { 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.0400.06720.24
7.0.10.0100.08320.10
7.0.00.0100.07720.10
5.6.170.0270.04020.47
5.6.160.0070.09020.55
5.6.150.0030.04318.28
5.6.140.0100.08018.16
5.6.130.0000.05718.17
5.6.120.0030.07720.99
5.6.110.0000.06021.11
5.6.100.0130.08021.09
5.6.90.0070.06720.99
5.6.80.0030.08720.34
5.5.310.0230.04020.34
5.5.300.0170.06718.04
5.5.290.0030.06318.04
5.5.280.0030.09020.76
5.5.270.0130.08020.87
5.5.260.0100.08020.79
5.5.250.0130.06320.78
5.5.240.0300.07020.19

preferences:
138.24 ms | 1394 KiB | 7 Q