3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'GoemonLets5'; // パスワード $hash = password_hash($password, PASSWORD_BCRYPT, ['cost' => 11]); // パスワード、アルゴリズム、計算コストを設定 echo $hash; echo "\n"; var_dump(password_get_info($hash));

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.80.0320.12816.16
7.2.60.0070.12816.93
7.2.00.0070.13119.50
7.1.200.0070.12815.79
7.1.100.0070.13018.05
7.1.70.0000.13317.18
7.1.60.0100.20319.43
7.1.50.0070.12716.91
7.1.00.0030.14022.52
7.0.200.0030.13016.50
7.0.140.0000.22022.14
7.0.70.5070.15719.90
7.0.60.0130.21720.09
7.0.50.0100.16317.91
7.0.40.0100.23020.29
7.0.30.0530.19020.20
7.0.20.0270.18320.25
7.0.10.0200.17020.17
7.0.00.0200.18720.07
5.6.280.0100.23021.14
5.6.210.0170.22320.69
5.6.200.0170.22718.18
5.6.190.0070.16320.66
5.6.180.0200.21020.44
5.6.170.0170.16720.54
5.6.160.0070.20720.55
5.6.150.0100.22018.25
5.6.140.0070.21718.19
5.6.130.0030.22318.25
5.6.120.0100.18721.02
5.6.110.0430.19320.99
5.6.100.0130.20721.01
5.6.90.0000.23021.11
5.6.80.0070.21720.50
5.6.70.0100.20020.52
5.5.350.0100.21720.36
5.5.340.0100.20318.05
5.5.330.0130.20720.27
5.5.320.0130.22020.44
5.5.310.0300.21320.38
5.5.300.0030.17018.07
5.5.290.0130.21317.89
5.5.280.0170.22020.81
5.5.270.0100.23320.91
5.5.260.0100.20720.83
5.5.250.0030.21320.64
5.5.240.0130.15320.36
5.4.450.0500.05719.11
5.4.440.0770.07019.27
5.4.430.0800.05319.23
5.4.420.0130.04719.54
5.4.410.0830.05719.36
5.4.400.0900.05018.92
5.4.390.0130.05019.16
5.4.380.0070.06718.41
5.4.370.0070.05018.48
5.4.360.0070.05318.45
5.4.350.0050.03711.97
5.4.340.0040.04411.97
5.4.320.0060.04312.45
5.4.310.0060.03712.45
5.4.300.0040.04212.46
5.4.290.0050.03812.45
5.4.280.0090.03712.34
5.4.270.0080.04212.34
5.4.260.0040.04212.34
5.4.250.0040.04012.34
5.4.240.0030.05718.90
5.4.230.0100.06018.96
5.4.220.0130.05018.88
5.4.210.0130.05718.77
5.4.200.0070.05018.87
5.4.190.0130.05018.90
5.4.180.0100.05018.68
5.4.170.0100.07018.89
5.4.160.0170.05718.64
5.4.150.0170.05018.87
5.4.140.0000.05716.48
5.4.130.0170.06316.49
5.4.120.0100.04716.52
5.4.110.0100.04716.42
5.4.100.0100.06016.42
5.4.90.0100.04316.29
5.4.80.0030.05016.38
5.4.70.0070.05016.47
5.4.60.0130.04016.45
5.4.50.0130.04016.23
5.4.40.0070.04716.53
5.4.30.0100.05716.39
5.4.20.0300.04716.20
5.4.10.0100.07016.31
5.4.00.0070.04715.70
5.3.290.0060.03912.80
5.3.280.0070.05014.46
5.3.270.0070.08014.62
5.3.260.0070.05014.70
5.3.250.0100.06314.38
5.3.240.0100.04714.60
5.3.230.0030.07314.60
5.3.220.0130.06714.57
5.3.210.0030.05714.27
5.3.200.0030.05314.36
5.3.190.0070.07014.61
5.3.180.0130.04314.56
5.3.170.0070.04714.28
5.3.160.0100.04714.26
5.3.150.0030.05314.26
5.3.140.0130.07314.41
5.3.130.0000.06014.43
5.3.120.0070.05014.57
5.3.110.0070.05014.57
5.3.100.0070.05713.81
5.3.90.0070.05014.11
5.3.80.0100.04714.12
5.3.70.0070.07014.04
5.3.60.0100.05014.01
5.3.50.0200.05713.84
5.3.40.0130.04013.79
5.3.30.0030.05014.00
5.3.20.0130.05313.79
5.3.10.0070.05013.52
5.3.00.0030.05013.42
5.2.170.0070.04311.06
5.2.160.0130.05011.16
5.2.150.0000.04311.13
5.2.140.0070.04010.89
5.2.130.0030.05311.25
5.2.120.0030.04311.02
5.2.110.0000.04311.00
5.2.100.0000.04310.95
5.2.90.0030.04711.03
5.2.80.0030.06311.09
5.2.70.0070.03711.13
5.2.60.0070.05311.14
5.2.50.0130.04711.01
5.2.40.0070.03710.84
5.2.30.0070.04010.97
5.2.20.0100.03310.88
5.2.10.0070.04010.84
5.2.00.0000.04310.79
5.1.60.0030.03310.14
5.1.50.0100.0409.76
5.1.40.0130.04310.02
5.1.30.0070.03710.34
5.1.20.0070.04710.43
5.1.10.0000.04010.21
5.1.00.0030.05010.12
5.0.50.0070.0308.78
5.0.40.0000.0278.32
5.0.30.0070.0408.41
5.0.20.0030.0238.19
5.0.10.0030.0278.20
5.0.00.0000.0438.24
4.4.90.0000.0306.43
4.4.80.0030.0276.43
4.4.70.0000.0236.43
4.4.60.0030.0206.43
4.4.50.0070.0236.43
4.4.40.0070.0306.43
4.4.30.0030.0206.43
4.4.20.0030.0206.43
4.4.10.0000.0206.43
4.4.00.0070.0276.43
4.3.110.0000.0236.43
4.3.100.0030.0206.43
4.3.90.0000.0206.43
4.3.80.0000.0336.43
4.3.70.0000.0236.43
4.3.60.0000.0306.43
4.3.50.0000.0276.43
4.3.40.0000.0476.43
4.3.30.0000.0236.43
4.3.20.0030.0206.43
4.3.10.0070.0236.43
4.3.00.0130.0177.38

preferences:
38.22 ms | 401 KiB | 5 Q