3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = password_hash("Test", PASSWORD_DEFAULT, ["cost" => 4]); var_dump(password_needs_rehash($hash, PASSWORD_DEFAULT, ["cost" => 4]);

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.0300.07320.06
7.0.10.0100.04320.16
7.0.00.0030.09020.35
5.6.170.0230.04320.62
5.6.160.0030.05320.44
5.6.150.0100.05018.19
5.6.140.0100.06718.17
5.6.130.0030.05318.28
5.6.120.0030.05321.08
5.6.110.0130.07020.95
5.6.100.0170.05720.98
5.6.90.0100.08320.94
5.6.80.0130.07320.40
5.5.310.0370.07320.37
5.5.300.0030.07718.07
5.5.290.0200.06717.98
5.5.280.0100.07020.79
5.5.270.0170.07020.86
5.5.260.0100.07720.83
5.5.250.0030.09020.77
5.5.240.0230.06720.20

preferences:
138.89 ms | 1386 KiB | 7 Q