3v4l.org

run code in 300+ PHP versions simultaneously
<?php $option = array('cost' => 10); $hashed =password_hash('mypass', PASSWORD_BCRYPT, $option); var_dump( $hashed); $verified = password_verify('mypass', $hashed); var_dump($verified); $hash557c10 = '$2y$10$fe3sFe8zFWYoeqnX6fy22O0W1tzsl7cV61rTa9pkYF85a68r0ZbK2'; $verified557 = password_verify('mypass', $hash557); var_dump($verified557);

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.60.0070.12816.49
7.2.00.0000.13618.97
7.1.200.0100.12615.51
7.1.100.0000.13217.97
7.1.70.0030.17917.02
7.1.60.0100.17819.43
7.1.50.0200.13216.89
7.1.00.0030.24022.57
7.0.200.0070.12116.88
7.0.60.0030.22319.96
7.0.50.0000.16017.90
7.0.40.0070.17320.32
7.0.30.0270.19720.27
7.0.20.0200.17020.23
7.0.10.0330.19020.39
7.0.00.0070.18020.14
5.6.280.0030.14720.93
5.6.210.0070.23320.57
5.6.200.0030.22018.14
5.6.190.0070.23020.67
5.6.180.0070.16720.47
5.6.170.0200.16720.55
5.6.160.0070.16020.61
5.6.150.0070.16018.29
5.6.140.0130.23318.14
5.6.130.0100.22318.34
5.6.120.0030.17321.00
5.6.110.0130.15321.01
5.6.100.0100.20721.14
5.6.90.0100.21021.00
5.6.80.0170.20720.40
5.5.350.0070.22320.48
5.5.340.0070.21018.05
5.5.330.0070.19020.25
5.5.320.0030.22720.49
5.5.310.0330.18720.34
5.5.300.0030.16318.02
5.5.290.0100.23718.01
5.5.280.0100.20021.00
5.5.270.0070.22720.75
5.5.260.0130.22020.92
5.5.250.0100.22020.64
5.5.240.0100.15320.09
5.4.450.0930.04319.45
5.4.440.0630.07019.52
5.4.430.0830.05019.46
5.4.420.0870.05019.44
5.4.410.0900.04019.47
5.4.400.0630.05019.23
5.4.390.0670.05018.97
5.4.380.0700.04319.00
5.4.370.0670.05019.26
5.4.360.0630.05319.30
5.4.350.0600.05718.99
5.4.340.0800.05319.09
5.4.320.0700.06019.16
5.4.310.0830.04018.80
5.4.300.0600.05718.80
5.4.290.0600.05318.91
5.4.280.0630.05719.25
5.4.270.0770.05318.99
5.4.260.0900.05018.99
5.4.250.0770.05319.31
5.4.240.0770.05319.30
5.4.230.0800.05019.14
5.4.220.0800.05019.20
5.4.210.0830.04719.15
5.4.200.0630.05719.09
5.4.190.0830.05019.11
5.4.180.0800.05018.98
5.4.170.0870.04019.30
5.4.160.0830.04319.07
5.4.150.0800.05319.28
5.4.140.0830.04716.28
5.4.130.0770.05316.40
5.4.120.0830.04316.26
5.4.110.0600.05316.04
5.4.100.0600.05016.37
5.4.90.0700.04316.54
5.4.80.0630.04716.48
5.4.70.0630.04716.32
5.4.60.0870.04016.04
5.4.50.0900.03716.34
5.4.40.0770.05316.04
5.4.30.0730.05016.43
5.4.20.0730.05016.43
5.4.10.0830.04316.43
5.4.00.0730.06015.95

preferences:
35.86 ms | 401 KiB | 5 Q