3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dangerous_pwd = 'foo' . chr(0) . 'bar'; $wrong_login_1 = 'baz'; $wrong_login_2 = 'foo'; $hash = password_hash($dangerous_pwd, PASSWORD_DEFAULT); if (password_verify($dangerous_pwd, $hash)) echo "this is good!\n"; if (password_verify($wrong_login_1, $hash)) echo "this shouldn't happen! (1)\n"; if (password_verify($wrong_login_2, $hash)) echo "this shouldn't happen, but does! (2)\n";

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)
8.0.30.0060.34016.75
8.0.20.0060.38116.92
8.0.10.0180.37016.88
8.0.00.0090.34516.87
7.4.160.0100.35116.69
7.4.150.0120.33616.48
7.4.140.0220.36516.34
7.4.130.0070.36616.40
7.4.120.0130.35416.49
7.4.110.0060.35416.41
7.4.100.0130.35916.38
7.4.90.0130.35916.43
7.4.80.0130.35516.48
7.4.70.0190.36216.26
7.4.60.0130.35616.42
7.4.50.0070.36316.26
7.4.40.0130.35516.19
7.4.30.0070.36416.32
7.4.20.0130.35916.39
7.4.10.0130.37716.41
7.4.00.0000.36916.39
7.3.270.0120.37016.13
7.3.260.0160.39016.09
7.3.250.0100.35416.07
7.3.240.0070.35916.17
7.3.230.0100.35816.17
7.3.220.0070.35716.07
7.3.210.0130.35316.07
7.3.200.0100.37116.02
7.3.190.0130.36016.11
7.3.180.0160.36116.10
7.3.170.0070.36016.05
7.3.160.0100.36415.98
7.3.150.0130.36816.12
7.3.140.0100.36116.05
7.3.130.0130.35116.12
7.3.120.0060.35616.09
7.3.110.0030.37115.96
7.3.100.0070.36115.95
7.3.90.0070.35816.36
7.3.80.0100.38716.10
7.3.70.0030.35416.29
7.3.60.0100.34916.33
7.3.50.0200.35716.32
7.3.40.0100.36616.32
7.3.30.0160.35916.25
7.3.20.0100.34416.21
7.3.10.0160.36216.28
7.3.00.0100.34216.22

preferences:
36.67 ms | 400 KiB | 5 Q