3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'foobar'; $salt = 'qwertzuiopasdfghjklyxc'; $hash = password_hash($password, PASSWORD_BCRYPT, [ 'salt' => $salt, ]); $froxlor_pwd_salt = str_replace(substr(strrchr($hash, "$"), 1), "", $hash); $froxlor_pwd_check = crypt($password, $froxlor_pwd_salt); var_dump($hash, $froxlor_pwd_check);

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.110.0190.06516.39
7.2.60.0030.07316.47
7.2.00.0030.08019.32
7.1.200.0100.06815.40
7.1.100.0030.06917.99
7.1.70.0070.06417.15
7.1.60.0130.06519.47
7.1.50.0270.10534.73
7.1.00.0000.17722.57
7.0.200.0730.06714.35
7.0.60.1500.00019.98
7.0.50.1730.00020.32
7.0.40.1670.00020.44
7.0.30.1930.00020.27
7.0.20.1700.00020.23
7.0.10.1700.00020.27
7.0.00.1670.00020.27
5.6.280.0000.16721.00
5.6.210.1570.00020.55
5.6.200.1730.00021.04
5.6.190.1600.00021.06
5.6.180.1700.00021.07
5.6.170.1730.00021.17
5.6.160.1570.00021.03
5.6.150.1870.00021.11
5.6.140.1870.00021.20
5.6.130.1870.00021.05
5.6.120.1570.00021.11
5.6.110.1570.00020.95
5.6.100.1930.00021.01
5.6.90.1670.00021.18
5.6.80.1530.00020.41
5.6.70.1700.00020.33
5.6.60.1730.00020.38
5.6.50.1600.00020.42
5.6.40.1630.00020.51
5.6.30.1670.00020.41
5.6.20.1630.00020.55
5.6.10.1700.00020.55
5.6.00.1600.00020.41
5.5.350.1700.00020.52
5.5.340.1830.00020.82
5.5.330.1600.00020.94
5.5.320.1870.00020.99
5.5.310.1670.00020.80
5.5.300.1730.00020.83
5.5.290.1800.00020.86
5.5.280.1570.00020.71
5.5.270.1600.00020.85
5.5.260.1600.00021.02
5.5.250.1930.00020.63
5.5.240.1930.00020.10
5.5.230.1830.00020.23
5.5.220.1700.00020.20
5.5.210.1530.00020.17
5.5.200.1530.00020.14
5.5.190.1600.00020.11
5.5.180.1670.00020.30
5.5.160.1730.00020.17
5.5.150.1770.00020.34
5.5.140.1530.00020.20
5.5.130.1730.00020.20
5.5.120.1530.00020.18
5.5.110.1600.00020.13
5.5.100.1730.00020.00
5.5.90.1800.00020.14
5.5.80.1770.00020.06
5.5.70.1830.00020.18
5.5.60.1770.00020.16
5.5.50.1730.00019.94
5.5.40.1530.00020.04
5.5.30.1730.00019.95
5.5.20.1700.00020.14
5.5.10.1600.00020.04
5.5.00.1600.00020.06

preferences:
35.8 ms | 403 KiB | 5 Q