3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 10, // increase this value to increase iteration count and the time it takes to generate hashes. 'salt' => base64_encode('Laugh and spit into the air. There could be holy fallout!') // a secure SALT value will automatically be created ]; echo password_hash("coolespasswort!", PASSWORD_BCRYPT, $options); echo '\n$2a$10$TGF1Z2ggYW5kIHNwaXQgaObu.tI.AQbzlpBZZANmLiSWomw2S.Q0u'; var_dump(password_hash("coolespasswort!", PASSWORD_BCRYPT, $options) === '$2a$10$TGF1Z2ggYW5kIHNwaXQgaObu.tI.AQbzlpBZZANmLiSWomw2S.Q0u');

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.4.10.0000.14714.99
7.4.00.0130.13415.20
7.3.130.0070.13315.06
7.3.120.0120.12914.61
7.3.110.0070.13914.89
7.3.100.0070.12914.64
7.3.90.0030.14014.64
7.3.80.0100.12914.94
7.3.70.0080.13414.78
7.3.60.0030.13114.83
7.3.50.0080.12914.65
7.3.40.0020.13114.69
7.3.30.0030.13414.72
7.3.20.0030.13116.61
7.3.10.0050.13516.64
7.3.00.0030.13016.69
7.2.260.0070.13715.11
7.2.250.0130.13115.28
7.2.240.0080.13215.10
7.2.230.0030.13614.79
7.2.220.0020.13914.97
7.2.210.0050.12814.97
7.2.200.0070.13115.08
7.2.190.0050.13114.99
7.2.180.0030.13014.92
7.2.170.0030.13214.97
7.2.160.0070.12814.99
7.2.150.0030.13416.92
7.2.140.0050.13117.03
7.2.130.0070.12416.84
7.2.120.0030.13816.72
7.2.110.0030.12916.88
7.2.100.0020.12916.88
7.2.90.0030.13116.88
7.2.80.0030.13516.98
7.2.70.0070.12916.72
7.2.60.0100.12716.89
7.2.50.0070.13217.01
7.2.40.0070.14116.99
7.2.30.0050.13516.91
7.2.20.0020.14016.82
7.2.10.0020.13116.89
7.2.00.0060.13017.66
7.1.330.0080.13515.76
7.1.320.0030.13515.76
7.1.310.0050.12915.72
7.1.300.0080.12915.66
7.1.290.0070.12915.78
7.1.280.0020.13115.68
7.1.270.0030.13415.80
7.1.260.0050.12815.64
7.1.250.0050.12915.63
7.1.240.0000.13615.54
7.1.230.0070.12615.68
7.1.220.0070.13215.61
7.1.210.0070.13915.57
7.1.200.0030.13615.47
7.1.190.0100.12415.74
7.1.180.0000.13715.64
7.1.170.0030.12915.48
7.1.160.0030.14115.66
7.1.150.0070.12915.41
7.1.140.0030.13615.80
7.1.130.0030.13215.48
7.1.120.0000.13215.79
7.1.110.0100.12315.59
7.1.100.0030.13415.70
7.1.90.0000.13815.52
7.1.80.0000.13115.77
7.1.70.0050.12816.45
7.1.60.0030.12917.75
7.1.50.0070.13916.01
7.1.40.0070.12315.80
7.1.30.0030.13215.87
7.1.20.0100.12615.42
7.1.10.0000.13715.41
7.1.00.0070.18719.13
7.0.330.0000.14215.42
7.0.320.0100.12715.32
7.0.310.0070.12715.32
7.0.300.0070.12815.27
7.0.290.0070.12414.97
7.0.280.0030.12815.27
7.0.270.0070.13215.31
7.0.260.0030.13015.25
7.0.250.0030.13215.45
7.0.240.0000.13315.19
7.0.230.0030.13115.36
7.0.220.0030.13615.14
7.0.210.0100.12115.32
7.0.200.0050.13615.94
7.0.190.0030.13015.51
7.0.180.0030.13215.14
7.0.170.0070.12115.55
7.0.160.0130.12115.47
7.0.150.0000.12815.41
7.0.140.0030.13215.38
7.0.130.0100.13515.38
7.0.120.0070.12915.49
7.0.110.0030.12615.17
7.0.100.0030.13215.07
7.0.90.1420.06617.70
7.0.80.1370.06617.84
7.0.70.1530.06917.79
7.0.60.1420.06317.66
7.0.50.1400.06317.85
7.0.40.1520.06416.83
7.0.30.1420.06516.93
7.0.20.1400.06316.88
7.0.10.1550.06416.91
7.0.00.1670.06316.85
5.6.400.0030.13314.38
5.6.390.0070.13214.39
5.6.380.0000.13514.57
5.6.370.0070.13114.09
5.6.360.0070.12914.53
5.6.350.0100.12314.45
5.6.340.0100.13114.59
5.6.330.0030.12914.40
5.6.320.0070.12214.57
5.6.310.0070.12514.03
5.6.300.0070.12714.36
5.6.290.0000.13414.71
5.6.280.0030.13214.30
5.6.270.0070.12414.22
5.6.260.0030.12914.38
5.6.250.0070.12114.62
5.6.240.1270.06417.68
5.6.230.1320.06117.58
5.6.220.1380.06717.36
5.6.210.1380.06417.50
5.6.200.1330.06417.78
5.6.190.1400.06817.62
5.6.180.1380.06317.68
5.6.170.1450.06217.63
5.6.160.1420.06617.62
5.6.150.1300.06417.63
5.6.140.1330.06517.71
5.6.130.1380.06517.57
5.6.120.1420.06417.83
5.6.110.1520.06517.91
5.6.100.1430.06517.79
5.6.90.1330.06617.62
5.6.80.1320.06617.25
5.6.70.1400.06217.41
5.6.60.1300.06617.29
5.6.50.1330.06417.32
5.6.40.1280.06217.24
5.6.30.1370.07117.21
5.6.20.1300.06917.32
5.6.10.1400.06717.32
5.6.00.1430.06617.34

preferences:
37.19 ms | 401 KiB | 5 Q