3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('cost' => 10); $salt = 'OaZZhZgCp/VAldZFX2o6leedzq6wLT.'; echo password_hash($salt, PASSWORD_BCRYPT, $options)."\n"; echo crypt($'test123', '$2a$10$' . $salt);

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.00.0130.08020.23
5.6.160.0100.08720.55
5.6.150.0100.06018.22
5.6.140.0100.07718.12
5.6.130.0030.04718.27
5.6.120.0130.06021.09
5.6.110.0100.08720.98
5.6.100.0070.05721.11
5.6.90.0030.06721.02
5.6.80.0070.06020.53
5.5.300.0100.07017.99
5.5.290.0070.04317.97
5.5.280.0030.07720.68
5.5.270.0100.08020.76
5.5.260.0100.06020.87
5.5.250.0100.05020.68
5.5.240.0100.04320.26

preferences:
136.48 ms | 1398 KiB | 7 Q