3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bcrypt = '$2a$12$9SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm/tfiLFDYb.oGvO8LEC'; $bcryptNeedsRehash = preg_replace('/\$\d{2}\$/', '\$' . 11 . '\$', $bcrypt); var_dump($bcrypt, $bcryptNeedsRehash); var_dump(password_hash('qG$4%7fM', PASSWORD_BCRYPT, array('cost'=>13)));

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.50016.78
7.2.00.0070.50219.61
7.1.200.0030.49516.00
7.1.100.0000.51518.36
7.1.70.0030.49217.26
7.1.60.0070.56419.40
7.1.50.0100.55817.05
7.1.00.0070.53022.32
7.0.200.0270.49514.90
7.0.140.0070.54722.00
7.0.120.0030.56721.92
7.0.60.0030.55319.86
7.0.50.0070.57717.86
7.0.40.0000.54020.05
7.0.30.0230.54320.12
7.0.20.0330.58020.19
7.0.10.0330.57720.07
7.0.00.0100.58020.10
5.6.280.0100.56020.85
5.6.210.0100.52320.67
5.6.200.0970.51718.14
5.6.190.0030.55320.64
5.6.180.0200.53320.42
5.6.170.0230.58720.45
5.6.160.0170.53720.63
5.6.150.0030.52718.15
5.6.140.0130.57018.12
5.6.130.0030.51318.25
5.6.120.0000.60321.11
5.6.110.0100.52021.13
5.6.100.0700.55321.00
5.6.90.0030.52020.97
5.6.80.0200.58020.35
5.6.70.0330.56320.29
5.5.350.0270.56020.43
5.5.340.0070.54017.99
5.5.330.0070.57020.18
5.5.320.0130.51720.43
5.5.310.0200.55320.26
5.5.300.0030.54718.13
5.5.290.0070.55018.02
5.5.280.0070.52720.77
5.5.270.0870.56320.86
5.5.260.0000.52020.83
5.5.250.0070.59020.54
5.5.240.0030.59020.12
5.4.450.0130.04019.41
5.4.440.0100.05019.46
5.4.430.0070.08019.46
5.4.420.0130.07019.43
5.4.410.0070.05019.28
5.4.400.0100.04319.08
5.4.390.0000.04719.18
5.4.380.0070.07319.08
5.4.370.0130.07019.18
5.4.360.0000.04319.20
5.4.350.0070.07718.80
5.4.340.0100.03319.08
5.4.320.0070.06019.10
5.4.310.0100.07319.09
5.4.300.0030.03719.14
5.4.290.0170.04718.80
5.4.280.0100.08019.11
5.4.270.0030.03719.07
5.4.260.0130.03719.18
5.4.250.0000.04318.78
5.4.240.0030.08319.14
5.4.230.0070.07019.17
5.4.220.0100.06718.95
5.4.210.0170.06719.15
5.4.200.0130.06719.07
5.4.190.0100.07719.14
5.4.180.0070.07719.06
5.4.170.0130.06018.77
5.4.160.0030.04018.98
5.4.150.0070.05019.12
5.4.140.0000.07316.34
5.4.130.0070.03716.24
5.4.120.0070.07016.37
5.4.110.0070.04016.36
5.4.100.0200.06316.39
5.4.90.0130.03016.23
5.4.80.0170.06016.22
5.4.70.0100.03716.21
5.4.60.0070.07016.25
5.4.50.0070.06316.30
5.4.40.0100.03316.21
5.4.30.0100.03016.36
5.4.20.0030.03316.34
5.4.10.0000.04016.12
5.4.00.0030.03315.64
5.3.290.0200.04714.56
5.3.280.0130.07314.68
5.3.270.0070.03714.55
5.3.260.0100.07314.53
5.3.250.0070.07714.48
5.3.240.0070.05314.43
5.3.230.0130.05014.47
5.3.220.0000.05014.49
5.3.210.0130.07014.49
5.3.200.0000.04714.38
5.3.190.0030.07314.49
5.3.180.0100.07014.59
5.3.170.0070.05314.51
5.3.160.0070.06714.46
5.3.150.0100.07714.48
5.3.140.0070.04314.50
5.3.130.0070.03314.45
5.3.120.0000.04014.47
5.3.110.0030.04314.51
5.3.100.0000.04013.86
5.3.90.0100.03013.95
5.3.80.0070.03313.99
5.3.70.0000.03713.85
5.3.60.0000.04313.98
5.3.50.0070.03313.87
5.3.40.0030.03713.90
5.3.30.0070.03713.85
5.3.20.0000.03713.62
5.3.10.0030.03313.60
5.3.00.0000.03713.72
5.2.170.0000.03010.96
5.2.160.0000.03011.03
5.2.150.0000.03011.07
5.2.140.0030.02711.07
5.2.130.0030.03010.95
5.2.120.0000.03011.04
5.2.110.0000.03010.95
5.2.100.0000.03011.08
5.2.90.0000.03311.11
5.2.80.0100.02711.03
5.2.70.0070.03010.98
5.2.60.0000.03311.01
5.2.50.0030.02710.94
5.2.40.0000.03310.91
5.2.30.0030.02710.85
5.2.20.0000.03010.81
5.2.10.0030.02710.91
5.2.00.0070.03010.70
5.1.60.0030.02010.14
5.1.50.0000.0309.89
5.1.40.0030.02310.04
5.1.30.0030.02310.37
5.1.20.0070.02710.38
5.1.10.0000.02710.13
5.1.00.0030.0279.96
5.0.50.0000.0208.70
5.0.40.0000.0208.31
5.0.30.0000.0308.13
5.0.20.0000.0208.15
5.0.10.0000.0208.13
5.0.00.0000.0308.15
4.4.90.0000.0177.02
4.4.80.0000.0177.02
4.4.70.0030.0137.02
4.4.60.0000.0177.02
4.4.50.0000.0177.02
4.4.40.0000.0407.02
4.4.30.0000.0177.02
4.4.20.0030.0137.02
4.4.10.0000.0177.02
4.4.00.0030.0237.02
4.3.110.0030.0137.02
4.3.100.0030.0177.02
4.3.90.0000.0137.02
4.3.80.0030.0207.02
4.3.70.0000.0177.02
4.3.60.0030.0137.02
4.3.50.0070.0337.02
4.3.40.0030.0407.02
4.3.30.0000.0277.02
4.3.20.0000.0237.02
4.3.10.0000.0207.02
4.3.00.0030.0177.02

preferences:
34.61 ms | 400 KiB | 5 Q