3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; $passwd1 = $str . 'A'; $passwd2 = $str . 'B'; $hash1 = password_hash(passwd1, PASSWORD_BCRYPT, array('cost'=>10)); $hash2 = password_hash(passwd2, PASSWORD_BCRYPT, array('cost'=>10)); echo ($hash1 === $hash2 ? 'same' : 'unique');

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.0000.13316.89
7.2.00.0000.13819.61
7.1.200.0130.12215.64
7.1.70.0030.12817.16
7.1.60.0030.13217.14
7.1.50.0130.13634.82
7.1.00.0070.18722.55
7.0.200.0030.20716.80
7.0.140.0070.21721.97
7.0.60.0070.22019.92
7.0.50.0030.22717.89
7.0.40.0030.22720.20
7.0.30.0170.16720.30
7.0.20.0130.17320.09
7.0.10.0170.16020.20
7.0.00.0070.17720.17
5.6.280.0030.23720.80
5.6.210.0100.19720.51
5.6.200.0070.18018.08
5.6.190.0100.21320.39
5.6.180.3730.16020.79
5.6.170.0230.22020.71
5.6.160.0030.22020.48
5.6.150.0000.18718.19
5.6.140.0130.16718.33
5.6.130.0100.16718.11
5.6.120.0130.19721.01
5.6.110.0130.22021.00
5.6.100.0030.17721.13
5.6.90.0030.23021.00
5.6.80.0030.22720.39
5.6.70.0200.22020.41
5.5.350.0230.21720.34
5.5.340.0130.21717.95
5.5.330.0100.21020.42
5.5.320.0230.17320.24
5.5.310.0330.22020.28
5.5.300.0030.22018.00
5.5.290.0070.22317.88
5.5.280.0100.16720.96
5.5.270.0000.16320.64
5.5.260.0030.19720.96
5.5.250.0130.22020.78
5.5.240.0000.18320.16
5.4.450.0130.07719.52
5.4.440.0900.07019.13
5.4.430.0830.05719.47
5.4.420.0670.06019.54
5.4.410.0600.05019.14
5.4.400.0470.06718.71
5.4.390.0130.07318.68
5.4.380.0270.06018.66
5.4.370.0130.05318.63
5.4.360.0130.05318.53
5.4.350.0160.06711.97
5.4.340.0060.04511.97
5.4.320.0100.03612.46
5.4.310.0090.03612.45
5.4.300.0020.04312.46
5.4.290.0060.04812.45
5.4.280.0080.03712.35
5.4.270.0040.03812.35
5.4.260.0070.03612.35
5.4.250.0070.05718.77
5.4.240.0100.05018.91
5.4.230.0100.04718.93
5.4.220.0030.05318.87
5.4.210.0100.05018.77
5.4.200.0070.05018.89
5.4.190.0130.04318.72
5.4.180.0030.05318.93
5.4.170.0070.05018.64
5.4.160.0030.05318.91
5.4.150.0070.05318.88
5.4.140.0100.04716.27
5.4.130.0070.04716.30
5.4.120.0130.04316.27
5.4.110.0100.05316.20
5.4.100.0100.04316.41
5.4.90.0070.06016.29
5.4.80.0100.06316.54
5.4.70.0030.05016.52
5.4.60.0000.05316.46
5.4.50.0130.04016.23
5.4.40.0170.04716.55
5.4.30.0070.05016.20
5.4.20.0030.05716.36
5.4.10.0070.05016.38
5.4.00.0070.04715.70
5.3.290.0060.03912.80
5.3.280.0070.05014.59
5.3.270.0130.04714.62
5.3.260.0030.05314.71
5.3.250.0070.05314.38
5.3.240.0200.03714.30
5.3.230.0070.05714.61
5.3.220.0030.05314.57
5.3.210.0130.06714.58
5.3.200.0170.04314.56
5.3.190.0170.06314.58
5.3.180.0030.05314.26
5.3.170.0130.04314.56
5.3.160.0030.05314.71
5.3.150.0030.05314.58
5.3.140.0130.04314.41
5.3.130.0170.06714.39
5.3.120.0030.05714.56
5.3.110.0130.05014.41
5.3.100.0030.05314.04
5.3.90.0070.05314.01
5.3.80.0070.05014.02
5.3.70.0100.05314.03
5.3.60.0100.04313.87
5.3.50.0030.05013.83
5.3.40.0100.04713.86
5.3.30.0070.04713.95
5.3.20.0100.04313.71
5.3.10.0100.04313.52
5.3.00.0100.04313.65
5.2.170.0030.04011.04
5.2.160.0030.04011.07
5.2.150.0000.04311.06
5.2.140.0070.03711.04
5.2.130.0130.05011.00
5.2.120.0030.05011.11
5.2.110.0000.04311.19
5.2.100.0070.04711.19
5.2.90.0070.03711.00
5.2.80.0100.03711.08
5.2.70.0070.04010.93
5.2.60.0130.03710.82
5.2.50.0070.03710.95
5.2.40.0000.04311.00
5.2.30.0070.04010.89
5.2.20.0070.03310.79
5.2.10.0030.03710.70
5.2.00.0000.04010.88
5.1.60.0070.0309.88
5.1.50.0030.0339.95
5.1.40.0000.0379.91
5.1.30.0130.02710.34
5.1.20.0030.03710.41
5.1.10.0030.0379.83
5.1.00.0070.03310.21
5.0.50.0000.0308.75
5.0.40.0000.0308.55
5.0.30.0100.0338.15
5.0.20.0030.0278.28
5.0.10.0070.0278.00
5.0.00.0000.0438.20
4.4.90.0030.0205.91
4.4.80.0030.0205.91
4.4.70.0070.0175.91
4.4.60.0030.0205.91
4.4.50.0000.0235.91
4.4.40.0070.0275.91
4.4.30.0030.0205.91
4.4.20.0030.0235.91
4.4.10.0030.0205.91
4.4.00.0070.0305.91
4.3.110.0030.0205.91
4.3.100.0070.0275.91
4.3.90.0000.0235.91
4.3.80.0070.0275.91
4.3.70.0070.0205.91
4.3.60.0100.0105.91
4.3.50.0070.0175.91
4.3.40.0000.0335.91
4.3.30.0030.0205.91
4.3.20.0030.0205.91
4.3.10.0030.0205.91
4.3.00.0030.0208.36

preferences:
41.17 ms | 400 KiB | 5 Q